* (bug 1130) Reorder old title checks; use title null instead of empty
[lhc/web/wiklou.git] / maintenance / refreshLinks.php
1 <?php
2 /**
3 * @todo document
4 * @package MediaWiki
5 * @subpackage Maintenance
6 */
7
8 /** */
9 $optionsWithArgs = array( 'm' );
10 require_once( "commandLine.inc" );
11 require_once( "refreshLinks.inc" );
12
13 error_reporting( E_ALL & (~E_NOTICE) );
14
15 if ( !$options['dfn-only'] ) {
16 if ($args[0]) {
17 $start = (int)$args[0];
18 } else {
19 $start = 1;
20 }
21
22 refreshLinks( $start, $options['new-only'], $options['m'] );
23 }
24 deleteLinksFromNonexistent();
25
26 ?>