When saving preferences, check hook and authentication plugin, and actually save...
[mediawiki.git] / maintenance / refreshLinks.php
blob34ca53c5103d019ba5c59102cbdbd10fbe013b05
1 <?php
2 /**
3 * @todo document
4 * @addtogroup Maintenance
5 */
7 /** */
8 $optionsWithArgs = array( 'm', 'e' );
9 require_once( "commandLine.inc" );
10 require_once( "refreshLinks.inc" );
12 error_reporting( E_ALL & (~E_NOTICE) );
14 if ( !$options['dfn-only'] ) {
15 if ($args[0]) {
16 $start = (int)$args[0];
17 } else {
18 $start = 1;
21 refreshLinks( $start, $options['new-only'], $options['m'], $options['e'], $options['redirects-only'] );
23 // this bit's bad for replication: disabling temporarily
24 // --brion 2005-07-16
25 //deleteLinksFromNonexistent();
27 if ( $options['globals'] ) {
28 print_r( $GLOBALS );