* adding <meta name="generator" content="MediaWiki $wgVersion" />
authorDanny B <danny_b@users.mediawiki.org>
Mon, 30 Jun 2008 01:26:02 +0000 (01:26 +0000)
committerDanny B <danny_b@users.mediawiki.org>
Mon, 30 Jun 2008 01:26:02 +0000 (01:26 +0000)
includes/OutputPage.php
skins/Modern.php
skins/MonoBook.php

index 8fe38f0..5f1d62a 100644 (file)
@@ -1333,7 +1333,7 @@ class OutputPage {
        public function headElement() {
                global $wgDocType, $wgDTD, $wgContLanguageCode, $wgOutputEncoding, $wgMimeType;
                global $wgXhtmlDefaultNamespace, $wgXhtmlNamespaces;
-               global $wgUser, $wgContLang, $wgUseTrackbacks, $wgTitle, $wgStyleVersion;
+               global $wgUser, $wgContLang, $wgUseTrackbacks, $wgTitle, $wgStyleVersion, $wgVersion;
 
                if( $wgMimeType == 'text/xml' || $wgMimeType == 'application/xhtml+xml' || $wgMimeType == 'application/xml' ) {
                        $ret = "<?xml version=\"1.0\" encoding=\"$wgOutputEncoding\" ?>\n";
@@ -1354,6 +1354,7 @@ class OutputPage {
                }
                $ret .= "xml:lang=\"$wgContLanguageCode\" lang=\"$wgContLanguageCode\" $rtl>\n";
                $ret .= "<head>\n<title>" . htmlspecialchars( $this->getHTMLTitle() ) . "</title>\n";
+               $ret .= "<meta name=\"generator\" content=\"MediaWiki " . $wgVersion . "\" />\n";
                array_push( $this->mMetatags, array( "http:Content-type", "$wgMimeType; charset={$wgOutputEncoding}" ) );
 
                $ret .= $this->getHeadLinks();
index ea75e1c..eb5c0f2 100644 (file)
@@ -47,7 +47,7 @@ class ModernTemplate extends QuickTemplate {
         * @access private
         */
        function execute() {
-               global $wgUser;
+               global $wgUser, $wgVersion;
                $skin = $wgUser->getSkin();
 
                // Suppress warnings to prevent notices about missing indexes in $this->data
@@ -62,6 +62,7 @@ class ModernTemplate extends QuickTemplate {
                <meta http-equiv="Content-Type" content="<?php $this->text('mimetype') ?>; charset=<?php $this->text('charset') ?>" />
                <?php $this->html('headlinks') ?>
                <title><?php $this->text('pagetitle') ?></title>
+               <meta name="generator" content="MediaWiki <?php echo $wgVersion ?>" />
                <?php if(empty($this->data['printable']) ) { ?>
                <style type="text/css" media="screen, projection">/*<![CDATA[*/
                        @import "<?php $this->text('stylepath') ?>/common/shared.css?<?php echo $GLOBALS['wgStyleVersion'] ?>";
index 5fb397f..3efd88d 100644 (file)
@@ -45,7 +45,7 @@ class MonoBookTemplate extends QuickTemplate {
         * @access private
         */
        function execute() {
-               global $wgUser;
+               global $wgUser, $wgVersion;
                $skin = $wgUser->getSkin();
 
                // Suppress warnings to prevent notices about missing indexes in $this->data
@@ -60,6 +60,7 @@ class MonoBookTemplate extends QuickTemplate {
                <meta http-equiv="Content-Type" content="<?php $this->text('mimetype') ?>; charset=<?php $this->text('charset') ?>" />
                <?php $this->html('headlinks') ?>
                <title><?php $this->text('pagetitle') ?></title>
+               <meta name="generator" content="MediaWiki <?php echo $wgVersion ?>" />
                <style type="text/css" media="screen, projection">/*<![CDATA[*/
                        @import "<?php $this->text('stylepath') ?>/common/shared.css?<?php echo $GLOBALS['wgStyleVersion'] ?>";
                        @import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/main.css?<?php echo $GLOBALS['wgStyleVersion'] ?>";