Index: trunk/phase3/maintenance/doMaintenance.php |
— | — | @@ -69,7 +69,7 @@ |
70 | 70 | $callback = MW_CONFIG_CALLBACK; |
71 | 71 | # PHP 5.1 doesn't support "class::method" for call_user_func, so split it |
72 | 72 | if ( strpos( $callback, '::' ) !== false ) { |
73 | | - $callback = explode( '::', $callback, 2); |
| 73 | + $callback = explode( '::', $callback, 2 ); |
74 | 74 | } |
75 | 75 | call_user_func( $callback ); |
76 | 76 | } elseif ( file_exists( "$IP/wmf-config/wikimedia-mode" ) ) { |
Index: trunk/phase3/maintenance/purgeList.php |
— | — | @@ -26,6 +26,7 @@ |
27 | 27 | public function __construct() { |
28 | 28 | parent::__construct(); |
29 | 29 | $this->mDescription = "Send purge requests for listed pages to squid"; |
| 30 | + $this->addOption( 'purge', 'Whether to update page touched.' , false, false ); |
30 | 31 | } |
31 | 32 | |
32 | 33 | public function execute() { |
— | — | @@ -42,7 +43,7 @@ |
43 | 44 | $url = $title->getFullUrl(); |
44 | 45 | $this->output( "$url\n" ); |
45 | 46 | $urls[] = $url; |
46 | | - if ( isset( $options['purge'] ) ) { |
| 47 | + if ( $this->getOptions( 'purge' ) ) { |
47 | 48 | $title->invalidateCache(); |
48 | 49 | } |
49 | 50 | } else { |