summaryrefslogtreecommitdiff
path: root/maintenance/refreshLinks.php
blob: 40e12115749598eac7db050992fd0e1e4a8f4659 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/**
 * @todo document
 * @addtogroup Maintenance
 */

/** */
$optionsWithArgs = array( 'm', 'e' );
require_once( "commandLine.inc" );
require_once( "refreshLinks.inc" );

error_reporting( E_ALL & (~E_NOTICE) );

if ( !$options['dfn-only'] ) {
	if ($args[0]) {
		$start = (int)$args[0];
	} else {
		$start = 1;
	}

	refreshLinks( $start, $options['new-only'], $options['m'], $options['e'] );
}
// this bit's bad for replication: disabling temporarily
// --brion 2005-07-16
//deleteLinksFromNonexistent();

if ( $options['globals'] ) {
	print_r( $GLOBALS );
}

?>