r51176 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51175‎ | r51176 | r51177 >
Date:01:47, 30 May 2009
Author:charlie
Status:deferred
Tags:
Comment:
Fixing some variable names that were mistakenly left in the file that were causing
some PHP warnings when trying to use the extension.
Modified paths:
  • /trunk/extensions/UsabilityInitiative/Toolbar/Toolbar.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/UsabilityInitiative/Toolbar/Toolbar.hooks.php
@@ -51,7 +51,7 @@
5252 public static function addJS(
5353 $out
5454 ) {
55 - global $wgScriptPath, $wgJsMimeType, $wgDraftsStyleVersion;
 55+ global $wgScriptPath, $wgJsMimeType, $wgToolbarStyleVersion;
5656 // Add javascript version variable
5757 $out->addInlineScript(
5858 "var wgToolbarStyleVersion = \"$wgToolbarStyleVersion\";\n"
@@ -81,7 +81,7 @@
8282 public static function addCSS(
8383 $out
8484 ) {
85 - global $wgScriptPath, $wgDraftsStyleVersion;
 85+ global $wgScriptPath, $wgToolbarStyleVersion;
8686 // Add css for various styles
8787 $out->addLink(
8888 array(
@@ -89,7 +89,7 @@
9090 'type' => 'text/css',
9191 'href' => $wgScriptPath .
9292 '/extensions/UsabilityInitiative/Toolbar/Toolbar.css?' .
93 - $wgDraftsStyleVersion,
 93+ $wgToolbarStyleVersion,
9494 )
9595 );
9696 // Continue

Status & tagging log