summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorxue <>2007-04-22 01:40:30 +0000
committerxue <>2007-04-22 01:40:30 +0000
commit2939abbf14e5eab91ef3d3d10a0fd53c97043f2c (patch)
tree0c4dbedf2505d2ebbd0541cde9838b634a775720 /framework
parente10194c41023f355d027e1cb005ec2dc7f7dbe3e (diff)
added support for duplicated config file inclusion.
Diffstat (limited to 'framework')
-rw-r--r--framework/TApplication.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/framework/TApplication.php b/framework/TApplication.php
index a9d907f5..2601e408 100644
--- a/framework/TApplication.php
+++ b/framework/TApplication.php
@@ -1310,7 +1310,10 @@ class TApplicationConfiguration extends TComponent
$when=true;
if(($filePath=$node->getAttribute('file'))===null)
throw new TConfigurationException('appconfig_includefile_required');
- $this->_includes[$filePath]=$when;
+ if(isset($this->_includes[$filePath]))
+ $this->_includes[$filePath]='('.$this->_includes[$filePath].') || ('.$when.')';
+ else
+ $this->_includes[$filePath]=$when;
}
}