r19347 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r19346‎ | r19347 | r19348 >
Date:21:01, 16 January 2007
Author:hashar
Status:old
Tags:
Comment:
fix warbubg when the array is set to false
Modified paths:
  • /trunk/phase3/maintenance/updateSpecialPages.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/updateSpecialPages.php
@@ -28,11 +28,11 @@
2929 continue;
3030 }
3131
32 - if ( in_array( $special, $wgDisableQueryPageUpdate ) ) {
 32+ if ( $wgDisableQueryPageUpdate && in_array( $special, $wgDisableQueryPageUpdate ) ) {
3333 printf("%-30s disabled\n", $special);
3434 continue;
3535 }
36 -
 36+
3737 $specialObj = SpecialPage::getPage( $special );
3838 if ( !$specialObj ) {
3939 print "No such special page: $special\n";