]> git.wh0rd.org - tt-rss.git/blobdiff - api/index.php
modify include path order (closes #514)
[tt-rss.git] / api / index.php
index b74ea3c5680aeab5ce42d2db7fbf3c2d49db2b2a..9b92dcaddfff0d1e3173d2adc8d31be5014f82af 100644 (file)
@@ -3,10 +3,10 @@
 
        require_once "../config.php";
 
-       set_include_path(get_include_path() . PATH_SEPARATOR .
-               dirname(__FILE__) . PATH_SEPARATOR .
+       set_include_path(dirname(__FILE__) . PATH_SEPARATOR .
                dirname(dirname(__FILE__)) . PATH_SEPARATOR .
-               dirname(dirname(__FILE__)) . "/include" );
+               dirname(dirname(__FILE__)) . "/include" . PATH_SEPARATOR .
+               get_include_path());
 
        chdir("..");