r50016 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50015‎ | r50016 | r50017 >
Date:20:14, 28 April 2009
Author:ialex
Status:deferred
Tags:
Comment:
* Added some ignored variables
* Also search for $eg* variables
Modified paths:
  • /trunk/extensions/Configure/findSettings.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Configure/findSettings.php
@@ -61,11 +61,20 @@
6262 # Core
6363 'wgTitle', 'wgArticle', 'wgContLang', 'wgLang', 'wgOut', 'wgParser', 'wgMessageCache',
6464 # Extensions
 65+ 'wgAbuseFilterStyleVersion',
 66+ 'wgCategoryTreeUseCategoryTable', 'wgCategoryTreeVersion',
 67+ 'wgCheckUserStyleVersion',
6568 'wgCaptcha', 'wgConfirmEditIP',
6669 'wgCitationCache', 'wgCitationCounter', 'wgCitationRunning',
 70+ 'wgCodeReviewStyleVersion',
6771 'wgCSS',
 72+ 'wgDeleteQueueStyleVersion',
6873 'wgErrorHandlerErrors', 'wgErrorHandlerOutputDone',
 74+ 'wgFlaggedRevStyleVersion',
 75+ 'wgOggScriptVersion',
6976 'wgExtParserFunctions',
 77+ 'wgUserBoardScripts', 'wgUserProfileDirectory', 'wgUserProfileScripts', 'wgUserRelationshipScripts',
 78+ 'wgTimelineSettings',
7079 'wgTitleBlacklist',
7180 );
7281 foreach ( $exts as $ext ) {
@@ -73,7 +82,7 @@
7483 $file = file_get_contents( $ext->getFile() );
7584 $name = $ext->getName();
7685 $m = array();
77 - preg_match_all( '/\$(wg[A-Za-z0-9]+)\s*\=/', $file, $m );
 86+ preg_match_all( '/\$([ew]g[A-Za-z0-9]+)\s*\=/', $file, $m );
7887 $definedSettings = array_unique( $m[1] );
7988 $allSettings = array_keys( $ext->getSettings() );
8089

Status & tagging log