commit 389aac21d6d23e5a6bcbaff33addfcca7bde8c13 parent 9decec3449192ab1f7a981ffeefa6dc24da38497 Author: MTRNord <mtrnord1@gmail.com> Date: Sat, 13 Dec 2014 19:31:16 +0100 fix it Diffstat:
| M | include.php | | | 9 | +++++++-- |
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/include.php b/include.php @@ -1,4 +1,9 @@ <?php -set_include_path(get_include_path() . PATH_SEPARATOR . getcwd()); -echo get_include_path(); +ini_restore('include_path') +if (get_include_path() = ini_restore('include_path') . getcwd()) { + ini_restore('include_path') +}else{ + set_include_path(get_include_path() . PATH_SEPARATOR . getcwd()); + echo get_include_path(); +} ?> \ No newline at end of file