r77068 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77067‎ | r77068 | r77069 >
Date:11:09, 21 November 2010
Author:mkroetzsch
Status:deferred
Tags:
Comment:
set a default $wgTitle value (similar to what is done in runJobs.php)
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/maintenance/SMW_refreshData.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/maintenance/SMW_refreshData.php
@@ -41,7 +41,8 @@
4242 ? getenv( 'MW_INSTALL_PATH' ) . "/maintenance/commandLine.inc"
4343 : dirname( __FILE__ ) . '/../../../maintenance/commandLine.inc' );
4444
45 -global $smwgEnableUpdateJobs, $wgServer;
 45+global $smwgEnableUpdateJobs, $wgServer, $wgTitle;
 46+$wgTitle = Title::newFromText( 'SMW_refreshData.php' );
4647 $smwgEnableUpdateJobs = false; // do not fork additional update jobs while running this script
4748
4849 if ( isset( $options['server'] ) ) {

Status & tagging log