[limb-svn] r5511 - 3.x/limb/view/src
svn at limb-project.com
svn at limb-project.com
Tue Apr 3 11:34:09 MSD 2007
Author: pachanga
Date: 2007-04-03 11:34:08 +0400 (Tue, 03 Apr 2007)
New Revision: 5511
URL: http://fisheye.limb-project.com/changelog/limb/?cs=5511
Modified:
3.x/limb/view/src/lmbWactView.class.php
Log:
-- _initWactTemplate() throws exception if template not found
Modified: 3.x/limb/view/src/lmbWactView.class.php
===================================================================
--- 3.x/limb/view/src/lmbWactView.class.php 2007-04-03 07:33:31 UTC (rev 5510)
+++ 3.x/limb/view/src/lmbWactView.class.php 2007-04-03 07:34:08 UTC (rev 5511)
@@ -20,9 +20,7 @@
function render()
{
- if(!$this->_initWactTemplate())
- return;
-
+ $this->_initWactTemplate();
$this->_fillWactTemplate();
return $this->wact_template->capture();
}
@@ -38,7 +36,6 @@
function getWactTemplate()
{
$this->_initWactTemplate();
-
return $this->wact_template;
}
@@ -67,22 +64,19 @@
function findChild($id)
{
- if(!$this->_initWactTemplate())
- return null;
-
+ $this->_initWactTemplate();
return $this->wact_template->findChild($id);
}
protected function _initWactTemplate()
{
if($this->wact_template)
- return true;
+ return;
if(!$path = $this->getTemplate())
- return false;
+ throw new lmbException("Could not init WACT template '{$this->template_name}'");
$this->wact_template = new lmbWactTemplate($path);
- return true;
}
protected function _fillWactTemplate()
More information about the limb-svn
mailing list