]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blob - maintenance/refreshLinks.php
MediaWiki 1.11.0
[autoinstallsdev/mediawiki.git] / maintenance / refreshLinks.php
1 <?php
2 /**
3  * @todo document
4  * @addtogroup Maintenance
5  */
6
7 /** */
8 $optionsWithArgs = array( 'm', 'e' );
9 require_once( "commandLine.inc" );
10 require_once( "refreshLinks.inc" );
11
12 error_reporting( E_ALL & (~E_NOTICE) );
13
14 if ( !$options['dfn-only'] ) {
15         if ($args[0]) {
16                 $start = (int)$args[0];
17         } else {
18                 $start = 1;
19         }
20
21         refreshLinks( $start, $options['new-only'], $options['m'], $options['e'], $options['redirects-only'] );
22 }
23 // this bit's bad for replication: disabling temporarily
24 // --brion 2005-07-16
25 //deleteLinksFromNonexistent();
26
27 if ( $options['globals'] ) {
28         print_r( $GLOBALS );
29 }
30
31