diff options
author | xue <> | 2005-12-10 18:11:10 +0000 |
---|---|---|
committer | xue <> | 2005-12-10 18:11:10 +0000 |
commit | f7466f7b444706d2a0382c0b569bb0f7f65ab6da (patch) | |
tree | 3841b0f74a29cb484dcadacee532142ec143e165 | |
parent | c17130154c3b03e79f37509eaf137144cbb03de7 (diff) |
Prado::using now will not include a file if the corresponding class is already defined.
-rw-r--r-- | framework/core.php | 3 |
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);
|