plog 修正檔 templateview.class.php
Published on 06/03,2004
plog 使用者上傳自己的模版後,無法以 op=Template 的方式使用自己的樣板
trace 了一下程式,找到 class/view/templateview.class.php 中少傳了一個值
修正檔下載 5-templateview.class.txt
|
/** * Renders the template */ function render() { $blogSettings = $this->_blogInfo->getSettings(); //少傳了$this->_blogInfo $template = $this->_templateService->Template( $this->_templateFile, $blogSettings->getValue( "template" ),$this->_blogInfo); $template->assign( $this->_params->getAsArray()); print( $template->fetch()); } } |