r59256 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r59255‎ | r59256 | r59257 >
Date:17:25, 19 November 2009
Author:werdna
Status:ok
Tags:
Comment:
Respect MW_INSTALL_PATH
Modified paths:
  • /trunk/extensions/GlobalUsage/refreshGlobalimagelinks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/GlobalUsage/refreshGlobalimagelinks.php
@@ -1,6 +1,12 @@
22 <?php
3 -require_once( '../../maintenance/Maintenance.php' );
 3+$path = '../..';
44
 5+if ( getenv('MW_INSTALL_PATH') !== false ) {
 6+ $path = getenv('MW_INSTALL_PATH');
 7+}
 8+
 9+require_once( $path.'/maintenance/Maintenance.php' );
 10+
511 class RefreshGlobalImageLinks extends Maintenance {
612 public function __construct() {
713 parent::__construct();

Status & tagging log