From: Brion Vibber Date: Tue, 13 Nov 2007 21:18:25 +0000 (+0000) Subject: * Added --override switch for disabled pages in updateSpecialPages.php X-Git-Tag: 1.31.0-rc.0~50879 X-Git-Url: http://git.cyclocoop.org/%22.%24redirect_annul.%22?a=commitdiff_plain;h=30182a6a97eabff7cac1ad187c2862e4bbf6928e;p=lhc%2Fweb%2Fwiklou.git * Added --override switch for disabled pages in updateSpecialPages.php * Fixed updateSpecialPages when using untouched include_path --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index c02ba09dd5..2d69c55cb4 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -66,6 +66,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Support for Hebrew numerals in dates and times * (bug 11315) Signatures can be configured in [[MediaWiki:Signature]] and [[MediaWiki:Signature-ip]] * Signatures for anonymous users link to Special:Contributions page rather than user page +* Added --override switch for disabled pages in updateSpecialPages.php === Bug fixes in 1.12 === diff --git a/maintenance/updateSpecialPages.php b/maintenance/updateSpecialPages.php index 424e20d938..5e0f2cebe1 100644 --- a/maintenance/updateSpecialPages.php +++ b/maintenance/updateSpecialPages.php @@ -5,14 +5,15 @@ $options = array('only','help'); require_once( 'commandLine.inc' ); -require_once( 'SpecialPage.php' ); -require_once( 'QueryPage.php' ); +require_once( "$IP/includes/SpecialPage.php" ); +require_once( "$IP/includes/QueryPage.php" ); if(@$options['help']) { print "usage:updateSpecialPages.php [--help] [--only=page]\n"; print " --help : this help message\n"; print " --list : list special pages names\n"; print " --only=page : only update 'page'. Ex: --only=BrokenRedirects\n"; + print " --override : update even pages which have had updates disabled\n"; wfDie(); } @@ -28,7 +29,7 @@ foreach ( $wgQueryPages as $page ) { continue; } - if ( $wgDisableQueryPageUpdate && in_array( $special, $wgDisableQueryPageUpdate ) ) { + if ( !isset( $options['override'] ) && $wgDisableQueryPageUpdate && in_array( $special, $wgDisableQueryPageUpdate ) ) { printf("%-30s disabled\n", $special); continue; }