r35234 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r35233‎ | r35234 | r35235 >
Date:16:58, 23 May 2008
Author:aaron
Status:old
Tags:
Comment:
* Use same $IP method for all scripts here
* Actually spell variable name correctly
Modified paths:
  • /trunk/extensions/FlaggedRevs/maintenance/reviewAllPages.inc (modified) (history)
  • /trunk/extensions/FlaggedRevs/maintenance/reviewAllPages.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/maintenance/updateLinks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/maintenance/reviewAllPages.php
@@ -1,7 +1,11 @@
22 <?php
33
4 -# Assume normal setup...
5 -require dirname(__FILE__) . '/../../../maintenance/commandLine.inc';
 4+if ( getenv( 'MW_INSTALL_PATH' ) ) {
 5+ $IP = getenv( 'MW_INSTALL_PATH' );
 6+} else {
 7+ $IP = dirname(__FILE__).'/../../..';
 8+}
 9+require "$IP/maintenance/commandLine.inc";
610 require dirname(__FILE__) . '/reviewAllPages.inc';
711
812 if( isset($options['help']) || !isset($args[0]) ) {
Index: trunk/extensions/FlaggedRevs/maintenance/reviewAllPages.inc
@@ -28,7 +28,7 @@
2929 __FUNCTION__ );
3030 # Go through and autoreview the current version of every page...
3131 foreach( $res as $row ) {
32 - $title = Title::makeTitle( $row->page_namspace, $row->page_title );
 32+ $title = Title::makeTitle( $row->page_namespace, $row->page_title );
3333 $rev = Revision::newFromId( $row->page_latest );
3434 # Is it already reviewed?
3535 $frev = FlaggedRevs::getFlaggedRev( $title, $row->page_latest, false, true, $row->page_id );
Index: trunk/extensions/FlaggedRevs/maintenance/updateLinks.php
@@ -1,7 +1,11 @@
22 <?php
33
4 -# Assume normal setup...
5 -require dirname(__FILE__) . '/../../../maintenance/commandLine.inc';
 4+if ( getenv( 'MW_INSTALL_PATH' ) ) {
 5+ $IP = getenv( 'MW_INSTALL_PATH' );
 6+} else {
 7+ $IP = dirname(__FILE__).'/../../..';
 8+}
 9+require "$IP/maintenance/commandLine.inc";
610 require dirname(__FILE__) . '/updateLinks.inc';
711
812 error_reporting( E_ALL );

Status & tagging log