From: <gem...@li...> - 2012-07-13 10:28:05
|
Revision: 842 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=842&view=rev Author: mennodekker Date: 2012-07-13 10:27:56 +0000 (Fri, 13 Jul 2012) Log Message: ----------- Somehow we could have lazy elements, fixed that too. Was no problem for Exhibitor Modified Paths: -------------- trunk/library/classes/Gems/FormattedData.php Modified: trunk/library/classes/Gems/FormattedData.php =================================================================== --- trunk/library/classes/Gems/FormattedData.php 2012-07-13 10:04:47 UTC (rev 841) +++ trunk/library/classes/Gems/FormattedData.php 2012-07-13 10:27:56 UTC (rev 842) @@ -144,7 +144,16 @@ } } - if ($result instanceof MUtil_Html_HtmlInterface) { + // If it is Lazy, execute it + if ($result instanceof MUtil_Lazy_LazyInterface) { + if ($result instanceof MUtil_Lazy_LazyInterface) { + $result = MUtil_Lazy::rise($result); + } + } + + // If it is Html, render it + if ($result instanceof MUtil_Html_HtmlInterface || $result instanceof MUtil_Lazy_LazyInterface) { + $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer'); if (null === $viewRenderer->view) { $viewRenderer->initView(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |