From 0ea2a52fe228fd482f4cb4ce9440c22b8c37d9da Mon Sep 17 00:00:00 2001 From: nveid <nveid@ispconfig3> Date: Mon, 29 Aug 2011 06:29:57 -0400 Subject: [PATCH] Reference: http://www.howtoforge.com/forums/showthread.php?t=53938 --- server/lib/app.inc.php | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/lib/app.inc.php b/server/lib/app.inc.php index fc2397c..a1d765d 100644 --- a/server/lib/app.inc.php +++ b/server/lib/app.inc.php @@ -75,7 +75,7 @@ if(is_array($cl)) { foreach($cl as $classname) { if(!@is_object($this->$classname)) { - if(is_file($conf['classpath'].'/'.$classname.'.inc.php') && !is_link($conf['classpath'].'/'.$classname.'.inc.php')) { + if(is_file($conf['classpath'].'/'.$classname.'.inc.php') && (DEVSYSTEM || !is_link($conf['classpath'].'/'.$classname.'.inc.php'))) { include_once($conf['classpath'].'/'.$classname.'.inc.php'); $this->$classname = new $classname; } @@ -91,7 +91,7 @@ $cl = explode(',',$classes); if(is_array($cl)) { foreach($cl as $classname) { - if(is_file($conf['classpath'].'/'.$classname.'.inc.php') && !is_link($conf['classpath'].'/'.$classname.'.inc.php')) { + if(is_file($conf['classpath'].'/'.$classname.'.inc.php') && (DEVSYSTEM || !is_link($conf['classpath'].'/'.$classname.'.inc.php'))) { include_once($conf['classpath'].'/'.$classname.'.inc.php'); } else { die('Unable to load: '.$conf['classpath'].'/'.$classname.'.inc.php'); -- Gitblit v1.9.1