summaryrefslogtreecommitdiff
path: root/framework/TApplication.php
diff options
context:
space:
mode:
authorxue <>2005-11-21 21:01:09 +0000
committerxue <>2005-11-21 21:01:09 +0000
commitb404b6fed5dc814ceb2cf03a17b20ff9d6da775d (patch)
treee6e97ade97784a2bd085bb0ea1fc3c2c874fe96e /framework/TApplication.php
parent35c6cb9ba3eb5e77f4eb4f1a93d8569d4b291236 (diff)
Diffstat (limited to 'framework/TApplication.php')
-rw-r--r--framework/TApplication.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/TApplication.php b/framework/TApplication.php
index 665ed076..f4d8c124 100644
--- a/framework/TApplication.php
+++ b/framework/TApplication.php
@@ -768,10 +768,12 @@ class TApplicationConfiguration extends TComponent
$p=realpath($configPath.'/'.$path);
if($p===false || !is_dir($p))
throw new TConfigurationException('appconfig_aliaspath_invalid',$id,$path);
+ if(isset($this->_aliases[$id]))
+ throw new TConfigurationException('appconfig_alias_redefined',$id);
$this->_aliases[$id]=$p;
}
else
- throw new TConfigurationException('appconfig_aliasid_required');
+ throw new TConfigurationException('appconfig_alias_invalid');
}
foreach($pathsNode->getElementsByTagName('using') as $usingNode)
{