Index: trunk/tools/code-utils/check-vars.php |
— | — | @@ -4,10 +4,10 @@ |
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 diffLanguage.php -o -name LocalSettings.php -o -name Parser?????.php \) -exec php tools/code-utils/check-vars.php \{\} + |
| 8 | + * find core/ \( -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 | | - $IP = dirname( __FILE__ ) . "/../../phase3/"; |
| 11 | + $IP = dirname( __FILE__ ) . "/../../core/"; |
12 | 12 | } |
13 | 13 | |
14 | 14 | $IP = rtrim( $IP, "/" ); |
— | — | @@ -317,7 +317,7 @@ |
318 | 318 | } |
319 | 319 | |
320 | 320 | /* Skip HipHop specific requires */ |
321 | | - $source = preg_replace( '/if \( isset\( \$_SERVER\[\'MW_COMPILED\'\] \) \) {\\s+require \( \'phase3\/.*\' \);\\s+} else {/', 'if ( true ) {', $source ); |
| 321 | + $source = preg_replace( '/if \( isset\( \$_SERVER\[\'MW_COMPILED\'\] \) \) {\\s+require *\( \'core\/.*\' \);\\s+} else {/', 'if ( true ) {', $source ); |
322 | 322 | |
323 | 323 | $this->mTokens = token_get_all( $source ); |
324 | 324 | } |