r43982 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43981‎ | r43982 | r43983 >
Date:18:17, 26 November 2008
Author:aaron
Status:ok
Tags:
Comment:
Reduce dirname(__FILE__) calls
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php
@@ -257,9 +257,6 @@
258258
259259 $wgFilterLogTypes['review'] = true;
260260
261 -$wgSvgGraphDir = dirname(__FILE__) . '/svggraph';
262 -$wgPHPlotDir = dirname(__FILE__) . '/phplot-5.0.5';
263 -
264261 # End of configuration variables.
265262 #########
266263
@@ -269,8 +266,11 @@
270267 $wgExtensionFunctions[] = 'efLoadFlaggedRevs';
271268
272269 $dir = dirname(__FILE__) . '/';
273 -$langDir = dirname(__FILE__) . '/language/';
 270+$langDir = $dir . 'language/';
274271
 272+$wgSvgGraphDir = $dir . 'svggraph';
 273+$wgPHPlotDir = $dir . 'phplot-5.0.5';
 274+
275275 $wgAutoloadClasses['FlaggedRevs'] = $dir.'FlaggedRevs.class.php';
276276 $wgAutoloadClasses['FlaggedRevsHooks'] = $dir.'FlaggedRevs.hooks.php';
277277 $wgAutoloadClasses['FlaggedRevsApiHooks'] = $dir.'FlaggedRevs.hooks.php';

Follow-up revisions

RevisionCommit summaryAuthorDate
r43987Follow up on r43982. Reduce dirname(__FILE__) calls in core and extensions.siebrand23:17, 26 November 2008
r44056Revert "Follow up on r43982. Reduce dirname(__FILE__) calls in core and exten...werdna03:15, 30 November 2008

Status & tagging log