Index: trunk/tools/code-utils/check-vars.php |
— | — | @@ -4,7 +4,7 @@ |
5 | 5 | * Checks a number of syntax conventions on variables from a valid PHP file. |
6 | 6 | * |
7 | 7 | * Run as: |
8 | | - * find phase3/ \( -name \*.php -or -name \*.inc \) -not \( -name importUseModWiki.php -o -name diffLanguage.php -o -name LocalSettings.php -o -name Parser?????.php \) -exec php tools/code-utils/check-vars.php \{\} + |
| 8 | + * find phase3/ \( -name \*.php -or -name \*.inc \) -not \( -name diffLanguage.php -o -name LocalSettings.php -o -name Parser?????.php \) -exec php tools/code-utils/check-vars.php \{\} + |
9 | 9 | */ |
10 | 10 | if( ! $IP = getenv( 'MW_INSTALL_PATH' ) ) { |
11 | 11 | $IP = dirname( __FILE__ ) . "/../../phase3/"; |
— | — | @@ -160,7 +160,6 @@ |
161 | 161 | $this->load( "$IP/includes/DefaultSettings.php", false ); |
162 | 162 | if ( count( $this->mTokens ) > 0 ) { |
163 | 163 | $globals = array ( |
164 | | - '$wgArticle', # Setup.php |
165 | 164 | '$wgAutoloadLocalClasses', # AutoLoader.php, a couple of readers |
166 | 165 | '$wgCanonicalNamespaceNames', # Namespace.php |
167 | 166 | '$wgContLang', # Setup.php |
— | — | @@ -186,7 +185,6 @@ |
187 | 186 | '$wgUseEnotif', # Setup.php |
188 | 187 | '$wgUseNormalUser', # maintenance |
189 | 188 | '$wgUser', # Setup.php |
190 | | - '$wgWikiFarm', # maintenance, to be removed |
191 | 189 | ); |
192 | 190 | |
193 | 191 | foreach ( $this->mTokens as $token ) { |
— | — | @@ -221,6 +219,8 @@ |
222 | 220 | '$col' => array( 'UtfNormalTest2.php' ), |
223 | 221 | '$lineNo' => array( 'UtfNormalTest2.php' ), |
224 | 222 | '$cliUpgrade' => array( 'CliInstaller.php' ), |
| 223 | + '$mediaWiki' => array( 'index.php' ), |
| 224 | + '$wgArticle' => array( 'index.php' ), |
225 | 225 | ); |
226 | 226 | |
227 | 227 | function setGenerateDeprecatedList( $bool = true ) { |