[pLog-svn] r1143 - in plog/trunk/class: template view

oscar at devel.plogworld.net oscar at devel.plogworld.net
Sat Feb 19 16:24:13 GMT 2005


Author: oscar
Date: 2005-02-19 16:24:12 +0000 (Sat, 19 Feb 2005)
New Revision: 1143

Modified:
   plog/trunk/class/template/templateservice.class.php
   plog/trunk/class/view/plugintemplatedview.class.php
Log:
this should solve issue 259 (http://bugs.plogworld.net/view.php?id=259)

Modified: plog/trunk/class/template/templateservice.class.php
===================================================================
--- plog/trunk/class/template/templateservice.class.php	2005-02-19 16:06:06 UTC (rev 1142)
+++ plog/trunk/class/template/templateservice.class.php	2005-02-19 16:24:12 UTC (rev 1143)
@@ -208,7 +208,7 @@
 		 * @param pluginId
 		 * @param templateName
 		 */
-		function PluginTemplate( $pluginId, $templateName )
+		function PluginTemplate( $pluginId, $templateName, $blogInfo = null )
 		{
 			// define the template file name
 			$templateFolder = TemplateSetStorage::getPluginTemplateFolder( $pluginId );
@@ -230,7 +230,7 @@
 		 * cached version of templates for plugins
 		 *
 		 */
-		function PluginCachedTemplate( $pluginId, $templateName )
+		function PluginCachedTemplate( $pluginId, $templateName, $blogInfo = null )
 		{
 			// define the template file name
 			$templateFolder = TemplateSetStorage::getPluginTemplateFolder( $pluginId );

Modified: plog/trunk/class/view/plugintemplatedview.class.php
===================================================================
--- plog/trunk/class/view/plugintemplatedview.class.php	2005-02-19 16:06:06 UTC (rev 1142)
+++ plog/trunk/class/view/plugintemplatedview.class.php	2005-02-19 16:24:12 UTC (rev 1143)
@@ -43,9 +43,9 @@
 			$this->_pluginId     = $pluginId;
 			
         	if ($cachingEnabled == SMARTY_VIEW_CACHE_DISABLED) {
-        	    $this->_template = $this->_templateService->PluginTemplate( $this->_pluginId, $this->_templateName );	
+        	    $this->_template = $this->_templateService->PluginTemplate( $this->_pluginId, $this->_templateName, $blogInfo );	
         	} else {
-        	    $this->_template = $this->_templateService->PluginCachedTemplate( $this->_pluginId, $this->_templateName );	
+        	    $this->_template = $this->_templateService->PluginCachedTemplate( $this->_pluginId, $this->_templateName, $blogInfo );	
         	}
         }
 




More information about the pLog-svn mailing list