summaryrefslogtreecommitdiff
path: root/framework/PradoBase.php
diff options
context:
space:
mode:
authorxue <>2006-04-11 12:02:57 +0000
committerxue <>2006-04-11 12:02:57 +0000
commitce695a47526931de5e8f531fa4461281d66b6a32 (patch)
treedf83785fde6da38d375aa1e714b55dddabd22ceb /framework/PradoBase.php
parent0d8044202bbd031e2a5e32166e568fe626263152 (diff)
Eliminated a few is_file() calls.
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))