Permalink
Browse files

Update loader.php

should use SCRIPT_FILENAME instead of PHP_SELF to always get full absolute path.
  • Loading branch information...
1 parent b5ca721 commit 928b21b027081b1c3e220582950a1d480f6656cf @DarkSide666 DarkSide666 committed Nov 4, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 loader.php
View
@@ -2,8 +2,8 @@
// This sets initial path for the include.
// Further includes will be initialized through PathFinder.
$places = array(
- dirname($_SERVER['PHP_SELF']),
- dirname($_SERVER['PHP_SELF']) . DIRECTORY_SEPARATOR . 'lib',
+ dirname($_SERVER['SCRIPT_FILENAME']),
+ dirname($_SERVER['SCRIPT_FILENAME']) . DIRECTORY_SEPARATOR . 'lib',
__DIR__ . DIRECTORY_SEPARATOR . 'lib',
);
set_include_path(join(PATH_SEPARATOR, $places));

0 comments on commit 928b21b

Please sign in to comment.