diff options
author | xue <> | 2007-07-17 11:54:59 +0000 |
---|---|---|
committer | xue <> | 2007-07-17 11:54:59 +0000 |
commit | 9ca0e83cc39d67c240ea89a2395d3bdb170fb4f7 (patch) | |
tree | 2491c5ce6c962e335eb1d2f9d633a877a133663f /framework/Web/UI/TPage.php | |
parent | 8313b3412e0db7262966a60b859093e6577abb46 (diff) |
Added THead requirement check
Diffstat (limited to 'framework/Web/UI/TPage.php')
-rw-r--r-- | framework/Web/UI/TPage.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/framework/Web/UI/TPage.php b/framework/Web/UI/TPage.php index 1a9f45c6..f368bc60 100644 --- a/framework/Web/UI/TPage.php +++ b/framework/Web/UI/TPage.php @@ -659,6 +659,9 @@ class TPage extends TTemplateControl foreach($this->_styleSheet->getJavaScriptFiles() as $url)
$cs->registerHeadScriptFile($url,$url);
}
+
+ if($cs->getRequiresHead() && $this->getHead()===null)
+ throw new TConfigurationException('page_head_required');
}
/**
|