diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2008-08-15 01:29:47 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2008-08-15 01:29:47 +0200 |
commit | 370e83bb0dfd0c70de268c93bf07ad5ee0897192 (patch) | |
tree | 491674f4c242e4d6ba0d04eafa305174c35a3391 /maintenance/refreshLinks.php | |
parent | f4debf0f12d0524d2b2427c55ea3f16b680fad97 (diff) |
Update auf 1.13.0
Diffstat (limited to 'maintenance/refreshLinks.php')
-rw-r--r-- | maintenance/refreshLinks.php | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/maintenance/refreshLinks.php b/maintenance/refreshLinks.php index 67fb77ae..4893d580 100644 --- a/maintenance/refreshLinks.php +++ b/maintenance/refreshLinks.php @@ -1,6 +1,7 @@ <?php /** - * @addtogroup Maintenance + * @file + * @ingroup Maintenance */ /** */ @@ -11,13 +12,20 @@ require_once( "refreshLinks.inc" ); if( isset( $options['help'] ) ) { echo <<<TEXT -Usage: php refreshLinks.php [<start>] [-e <end>] [-m <maxlag>] [--help] - - --help : This help message - --dfn-only : Delete links from nonexistent articles only - -m <number> : Maximum replication lag - <start> : First page id to refresh - -e <number> : Last page id to refresh +Usage: + php refreshLinks.php --help + php refreshLinks.php [<start>] [-e <end>] [-m <maxlag>] [--dfn-only] + [--new-only] [--redirects-only] + php refreshLinks.php [<start>] [-e <end>] [-m <maxlag>] --old-redirects-only + + --help : This help message + --dfn-only : Delete links from nonexistent articles only + --new-only : Only affect articles with just a single edit + --redirects-only : Only fix redirects, not all links + --old-redirects-only : Only fix redirects with no redirect table entry + -m <number> : Maximum replication lag + <start> : First page id to refresh + -e <number> : Last page id to refresh TEXT; exit(0); @@ -32,7 +40,7 @@ if ( !$options['dfn-only'] ) { $start = 1; } - refreshLinks( $start, $options['new-only'], $options['m'], $options['e'], $options['redirects-only'] ); + refreshLinks( $start, $options['new-only'], $options['m'], $options['e'], $options['redirects-only'], $options['old-redirects-only'] ); } // this bit's bad for replication: disabling temporarily // --brion 2005-07-16 |