summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/core.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/core.php b/framework/core.php
index efd091ad..b5aa701c 100644
--- a/framework/core.php
+++ b/framework/core.php
@@ -571,7 +571,8 @@ class PradoBase
if(is_file($path))
{
self::$_usings[$namespace]=$path;
- require_once($path);
+ if(!class_exists(substr(strrchr($namespace,'.'),1),false))
+ require_once($path);
}
else
throw new TInvalidDataValueException('prado_using_invalid',$namespace);