Created
May 20, 2014 08:35
-
-
Save thekid/2a75289bd211594e3a69 to your computer and use it in GitHub Desktop.
XP Runners: Patch core for XP Runners "no-path-arg"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/tools/class-main.php b/tools/class-main.php | |
| index efd6f91..2fcede3 100755 | |
| --- a/tools/class-main.php | |
| +++ b/tools/class-main.php | |
| @@ -44,11 +44,9 @@ if (!include(__DIR__.DIRECTORY_SEPARATOR.'lang.base.php')) { | |
| exit(0x3d); | |
| } | |
| -$home= getenv('HOME'); | |
| -list($use, $include)= explode(PATH_SEPARATOR.PATH_SEPARATOR, get_include_path()); | |
| bootstrap(array_merge( | |
| - scanpath(explode(PATH_SEPARATOR, substr($use, 2).PATH_SEPARATOR.'.'), $home), | |
| - explode(PATH_SEPARATOR, $include) | |
| + scanpath(explode(PATH_SEPARATOR, substr(get_cfg_var('use_xp'), 2)), getenv('HOME')), | |
| + explode(PATH_SEPARATOR, get_include_path()) | |
| )); | |
| // Start I/O layers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment