summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TTemplateControl.php
diff options
context:
space:
mode:
authorxue <>2006-03-19 15:01:48 +0000
committerxue <>2006-03-19 15:01:48 +0000
commit0a5ac092a516ef3c71111d259b814864d2171efd (patch)
tree851078a168efd9e8657fab6eddfc92d98f1faf6b /framework/Web/UI/TTemplateControl.php
parentb8ac07fd91e18decc0a863f3deb115772ea27eac (diff)
Fixed #95.
Diffstat (limited to 'framework/Web/UI/TTemplateControl.php')
-rw-r--r--framework/Web/UI/TTemplateControl.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/UI/TTemplateControl.php b/framework/Web/UI/TTemplateControl.php
index c902295c..ef90f0a3 100644
--- a/framework/Web/UI/TTemplateControl.php
+++ b/framework/Web/UI/TTemplateControl.php
@@ -159,7 +159,7 @@ class TTemplateControl extends TControl implements INamingContainer
*/
public function registerContentPlaceHolder($id,TContentPlaceHolder $object)
{
- if(isset($this->_contents[$id]))
+ if(isset($this->_placeholders[$id]))
throw new TConfigurationException('templatecontrol_placeholderid_duplicated',$id);
else
$this->_placeholders[$id]=$object;