summaryrefslogtreecommitdiff
path: root/app/php/web/FacadeTemplateControl.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/php/web/FacadeTemplateControl.php')
-rw-r--r--app/php/web/FacadeTemplateControl.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/php/web/FacadeTemplateControl.php b/app/php/web/FacadeTemplateControl.php
index b713f49..05d148c 100644
--- a/app/php/web/FacadeTemplateControl.php
+++ b/app/php/web/FacadeTemplateControl.php
@@ -13,6 +13,15 @@ class FacadeTemplateControl extends TemplateControl {
return $this->getControlState('Facade');
}
+ public function onPreRender($param) {
+ parent::onPreRender($param);
+ if (!$this->getFacade()) {
+ throw new TInvalidDataValueException(
+ 'FacadeTemplateControl requires a Facade instance'
+ );
+ }
+ }
+
}
?>