Index: trunk/phase3/skins/MonoBook.php |
— | — | @@ -45,7 +45,7 @@ |
46 | 46 | * @access private |
47 | 47 | */ |
48 | 48 | function execute() { |
49 | | - global $wgUser; |
| 49 | + global $wgUser, $wgVersion; |
50 | 50 | $skin = $wgUser->getSkin(); |
51 | 51 | |
52 | 52 | // Suppress warnings to prevent notices about missing indexes in $this->data |
— | — | @@ -60,6 +60,7 @@ |
61 | 61 | <meta http-equiv="Content-Type" content="<?php $this->text('mimetype') ?>; charset=<?php $this->text('charset') ?>" /> |
62 | 62 | <?php $this->html('headlinks') ?> |
63 | 63 | <title><?php $this->text('pagetitle') ?></title> |
| 64 | + <meta name="generator" content="MediaWiki <?php echo $wgVersion ?>" /> |
64 | 65 | <style type="text/css" media="screen, projection">/*<![CDATA[*/ |
65 | 66 | @import "<?php $this->text('stylepath') ?>/common/shared.css?<?php echo $GLOBALS['wgStyleVersion'] ?>"; |
66 | 67 | @import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/main.css?<?php echo $GLOBALS['wgStyleVersion'] ?>"; |
Index: trunk/phase3/skins/Modern.php |
— | — | @@ -47,7 +47,7 @@ |
48 | 48 | * @access private |
49 | 49 | */ |
50 | 50 | function execute() { |
51 | | - global $wgUser; |
| 51 | + global $wgUser, $wgVersion; |
52 | 52 | $skin = $wgUser->getSkin(); |
53 | 53 | |
54 | 54 | // Suppress warnings to prevent notices about missing indexes in $this->data |
— | — | @@ -62,6 +62,7 @@ |
63 | 63 | <meta http-equiv="Content-Type" content="<?php $this->text('mimetype') ?>; charset=<?php $this->text('charset') ?>" /> |
64 | 64 | <?php $this->html('headlinks') ?> |
65 | 65 | <title><?php $this->text('pagetitle') ?></title> |
| 66 | + <meta name="generator" content="MediaWiki <?php echo $wgVersion ?>" /> |
66 | 67 | <?php if(empty($this->data['printable']) ) { ?> |
67 | 68 | <style type="text/css" media="screen, projection">/*<![CDATA[*/ |
68 | 69 | @import "<?php $this->text('stylepath') ?>/common/shared.css?<?php echo $GLOBALS['wgStyleVersion'] ?>"; |
Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -1333,7 +1333,7 @@ |
1334 | 1334 | public function headElement() { |
1335 | 1335 | global $wgDocType, $wgDTD, $wgContLanguageCode, $wgOutputEncoding, $wgMimeType; |
1336 | 1336 | global $wgXhtmlDefaultNamespace, $wgXhtmlNamespaces; |
1337 | | - global $wgUser, $wgContLang, $wgUseTrackbacks, $wgTitle, $wgStyleVersion; |
| 1337 | + global $wgUser, $wgContLang, $wgUseTrackbacks, $wgTitle, $wgStyleVersion, $wgVersion; |
1338 | 1338 | |
1339 | 1339 | if( $wgMimeType == 'text/xml' || $wgMimeType == 'application/xhtml+xml' || $wgMimeType == 'application/xml' ) { |
1340 | 1340 | $ret = "<?xml version=\"1.0\" encoding=\"$wgOutputEncoding\" ?>\n"; |
— | — | @@ -1354,6 +1354,7 @@ |
1355 | 1355 | } |
1356 | 1356 | $ret .= "xml:lang=\"$wgContLanguageCode\" lang=\"$wgContLanguageCode\" $rtl>\n"; |
1357 | 1357 | $ret .= "<head>\n<title>" . htmlspecialchars( $this->getHTMLTitle() ) . "</title>\n"; |
| 1358 | + $ret .= "<meta name=\"generator\" content=\"MediaWiki " . $wgVersion . "\" />\n"; |
1358 | 1359 | array_push( $this->mMetatags, array( "http:Content-type", "$wgMimeType; charset={$wgOutputEncoding}" ) ); |
1359 | 1360 | |
1360 | 1361 | $ret .= $this->getHeadLinks(); |