unescape $
[mediawiki.git] / maintenance / refreshLinks.php
blobf37c8e874f380195c9069fbfdef61936a14c97f9
1 <?php
2 /**
3 * @todo document
4 * @package MediaWiki
5 * @subpackage Maintenance
6 */
8 /** */
9 $optionsWithArgs = array( 'm' );
10 require_once( "commandLine.inc" );
11 require_once( "refreshLinks.inc" );
13 error_reporting( E_ALL & (~E_NOTICE) );
15 if ( !$options['dfn-only'] ) {
16 if ($args[0]) {
17 $start = (int)$args[0];
18 } else {
19 $start = 1;
22 refreshLinks( $start, $options['new-only'], $options['m'] );
24 deleteLinksFromNonexistent();