Index: trunk/extensions/FlaggedRevs/maintenance/reviewAllPages.php |
— | — | @@ -1,7 +1,11 @@ |
2 | 2 | <?php |
3 | 3 | |
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"; |
6 | 10 | require dirname(__FILE__) . '/reviewAllPages.inc'; |
7 | 11 | |
8 | 12 | if( isset($options['help']) || !isset($args[0]) ) { |
Index: trunk/extensions/FlaggedRevs/maintenance/reviewAllPages.inc |
— | — | @@ -28,7 +28,7 @@ |
29 | 29 | __FUNCTION__ ); |
30 | 30 | # Go through and autoreview the current version of every page... |
31 | 31 | foreach( $res as $row ) { |
32 | | - $title = Title::makeTitle( $row->page_namspace, $row->page_title ); |
| 32 | + $title = Title::makeTitle( $row->page_namespace, $row->page_title ); |
33 | 33 | $rev = Revision::newFromId( $row->page_latest ); |
34 | 34 | # Is it already reviewed? |
35 | 35 | $frev = FlaggedRevs::getFlaggedRev( $title, $row->page_latest, false, true, $row->page_id ); |
Index: trunk/extensions/FlaggedRevs/maintenance/updateLinks.php |
— | — | @@ -1,7 +1,11 @@ |
2 | 2 | <?php |
3 | 3 | |
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"; |
6 | 10 | require dirname(__FILE__) . '/updateLinks.inc'; |
7 | 11 | |
8 | 12 | error_reporting( E_ALL ); |