summaryrefslogtreecommitdiff
path: root/framework/PradoBase.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/PradoBase.php')
-rw-r--r--framework/PradoBase.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/PradoBase.php b/framework/PradoBase.php
index 0baa9234..9793f90e 100644
--- a/framework/PradoBase.php
+++ b/framework/PradoBase.php
@@ -266,7 +266,7 @@ class PradoBase
$className=substr($namespace,$pos+1);
if($className==='*') // a directory
{
- if(is_dir($path))
+ if((self::$_application && self::$_application->getMode()===TApplication::STATE_PERFORMANCE) || is_dir($path))
{
self::$_usings[$namespace]=$path;
set_include_path(get_include_path().PATH_SEPARATOR.$path);
@@ -276,7 +276,7 @@ class PradoBase
}
else // a file
{
- if(is_file($path))
+ if((self::$_application && self::$_application->getMode()===TApplication::STATE_PERFORMANCE) || is_file($path))
{
self::$_usings[$namespace]=$path;
if(!class_exists($className,false))