summaryrefslogtreecommitdiff
path: root/framework/core.php
diff options
context:
space:
mode:
authorxue <>2005-12-10 18:11:10 +0000
committerxue <>2005-12-10 18:11:10 +0000
commitf7466f7b444706d2a0382c0b569bb0f7f65ab6da (patch)
tree3841b0f74a29cb484dcadacee532142ec143e165 /framework/core.php
parentc17130154c3b03e79f37509eaf137144cbb03de7 (diff)
Prado::using now will not include a file if the corresponding class is already defined.
Diffstat (limited to 'framework/core.php')
-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);