diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2006-10-11 18:12:39 +0000 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2006-10-11 18:12:39 +0000 |
commit | 183851b06bd6c52f3cae5375f433da720d410447 (patch) | |
tree | a477257decbf3360127f6739c2f9d0ec57a03d39 /maintenance/refreshLinks.php |
MediaWiki 1.7.1 wiederhergestellt
Diffstat (limited to 'maintenance/refreshLinks.php')
-rw-r--r-- | maintenance/refreshLinks.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/maintenance/refreshLinks.php b/maintenance/refreshLinks.php new file mode 100644 index 00000000..e59124aa --- /dev/null +++ b/maintenance/refreshLinks.php @@ -0,0 +1,32 @@ +<?php +/** + * @todo document + * @package MediaWiki + * @subpackage 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 ); +} + +?> |