Index: trunk/phase3/maintenance/refreshLinks.php |
— | — | @@ -6,9 +6,32 @@ |
7 | 7 | |
8 | 8 | /** */ |
9 | 9 | $optionsWithArgs = array( 'm', 'e' ); |
| 10 | + |
10 | 11 | require_once( "commandLine.inc" ); |
11 | 12 | require_once( "refreshLinks.inc" ); |
12 | 13 | |
| 14 | +if( isset( $options['help'] ) ) { |
| 15 | + echo <<<TEXT |
| 16 | +usage: php refreshLinks.php start [-e end] [-m maxlag] [--help] [possibly other |
| 17 | + stuff] |
| 18 | + |
| 19 | + --help : This help message |
| 20 | + --dfn-only : ??? |
| 21 | + -m <number> : Specifies max replication lag? Does it abort or wait if this |
| 22 | + is exceeded? |
| 23 | + start : First page id to refresh? Doesn't work with --dfn-only set? |
| 24 | + -e <number> : Last page id to refresh? |
| 25 | + |
| 26 | +This uses wfGetDB() to get the database, it seems not to accept a database ar- |
| 27 | +gument on the command line. So I don't know if you can use it for non-default |
| 28 | +configuration. |
| 29 | + |
| 30 | +Todo: Real documentation. |
| 31 | + |
| 32 | +TEXT; |
| 33 | + exit(0); |
| 34 | +} |
| 35 | + |
13 | 36 | error_reporting( E_ALL & (~E_NOTICE) ); |
14 | 37 | |
15 | 38 | if ( !$options['dfn-only'] ) { |
Index: trunk/phase3/maintenance/namespaceDupes.php |
— | — | @@ -205,7 +205,6 @@ |
206 | 206 | } |
207 | 207 | |
208 | 208 | function resolveConflictOn( $row, $table ) { |
209 | | - $fname = 'NamespaceConflictChecker::resolveConflictOn'; |
210 | 209 | echo "... resolving on $table... "; |
211 | 210 | $newTitle = Title::makeTitleSafe( $row->namespace, $row->title ); |
212 | 211 | $this->db->update( $table, |
— | — | @@ -217,7 +216,7 @@ |
218 | 217 | "{$table}_namespace" => 0, |
219 | 218 | "{$table}_title" => $row->oldtitle, |
220 | 219 | ), |
221 | | - $fname ); |
| 220 | + __METHOD__ ); |
222 | 221 | echo "ok.\n"; |
223 | 222 | return true; |
224 | 223 | } |