Skip to content
Snippets Groups Projects
Commit bea05bc0 authored by jcgachod's avatar jcgachod
Browse files

reduce dependencies on environment / constant for ZF & Storm loading

parent a13228cd
Branches
Tags 8.0.137
No related merge requests found
......@@ -18,11 +18,11 @@
* along with AFI-OPAC 2.0; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
set_include_path('.' . PATH_SEPARATOR . './library'
. PATH_SEPARATOR . './library/storm/src'
. PATH_SEPARATOR . './library/storm/zf/library'
. PATH_SEPARATOR . get_include_path());
$base_path = realpath(dirname(__FILE__));
set_include_path($base_path . '/library' . PATH_SEPARATOR .
$base_path . '/library/storm/src' . PATH_SEPARATOR .
$base_path . '/library/storm/zf/library' . PATH_SEPARATOR .
get_include_path());
// Includes de base
include_once "local.php";
......
......@@ -19,7 +19,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
require('includes.php');
require(realpath(dirname(__FILE__)).'/includes.php');
try {
if (isUserAgentBotAndNotAllowed())
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment