https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114452

Revision: 114452
Author:   platonides
Date:     2012-03-23 16:44:06 +0000 (Fri, 23 Mar 2012)
Log Message:
-----------
r105516 decided to remove the space after require, making 
the regex to fail (this is a token, not a function...).
Update to chnge from trunk/phase3 to mediawiki/core

Modified Paths:
--------------
    trunk/tools/code-utils/check-vars.php

Modified: trunk/tools/code-utils/check-vars.php
===================================================================
--- trunk/tools/code-utils/check-vars.php       2012-03-23 16:16:42 UTC (rev 
114451)
+++ trunk/tools/code-utils/check-vars.php       2012-03-23 16:44:06 UTC (rev 
114452)
@@ -4,10 +4,10 @@
  * Checks a number of syntax conventions on variables from a valid PHP file.
  *
  * Run as:
- *  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 \{\} +
+ *  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 \{\} +
  */
 if ( ! $IP = getenv( 'MW_INSTALL_PATH' ) ) {
-       $IP = dirname( __FILE__ ) . "/../../phase3/";
+       $IP = dirname( __FILE__ ) . "/../../core/";
 }
 
 $IP = rtrim( $IP, "/" );
@@ -317,7 +317,7 @@
                }
 
                /* Skip HipHop specific requires */
-               $source = preg_replace( '/if \( isset\( 
\$_SERVER\[\'MW_COMPILED\'\] \) \) {\\s+require \( \'phase3\/.*\' \);\\s+} else 
{/', 'if ( true ) {', $source );
+               $source = preg_replace( '/if \( isset\( 
\$_SERVER\[\'MW_COMPILED\'\] \) \) {\\s+require *\( \'core\/.*\' \);\\s+} else 
{/', 'if ( true ) {', $source );
 
                $this->mTokens = token_get_all( $source );
        }


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to