[pLog-svn] r2299 - plog/branches/plog-1.0.2/class/summary/view

oscar at devel.plogworld.net oscar at devel.plogworld.net
Tue Jul 12 11:37:48 GMT 2005


Author: oscar
Date: 2005-07-12 11:37:47 +0000 (Tue, 12 Jul 2005)
New Revision: 2299

Modified:
   plog/branches/plog-1.0.2/class/summary/view/summaryrssview.class.php
Log:
this should fix issue 633


Modified: plog/branches/plog-1.0.2/class/summary/view/summaryrssview.class.php
===================================================================
--- plog/branches/plog-1.0.2/class/summary/view/summaryrssview.class.php	2005-07-09 18:57:13 UTC (rev 2298)
+++ plog/branches/plog-1.0.2/class/summary/view/summaryrssview.class.php	2005-07-12 11:37:47 UTC (rev 2299)
@@ -26,13 +26,21 @@
         function generateTemplate()
         {
             $templateService = new TemplateService();
-            $this->_template = $templateService->CachedTemplate( $this->_templateName, "summary/rss" );        
+            $this->_template = $templateService->customTemplate( $this->_templateName, "summary/rss", true );
+            
+            // by default, these compiled files would be saved and cached to tmp/summary/rss but that's too
+            // many folders so we'll overwrite the default settings set by TemplateService::customTemplate()
+            // and save the files to tmp/summary/ with the other summary pages
+			$config =& Config::getConfig();
+			$templateTmpFolder = $config->getValue( "temp_folder" ).'/summary';
+			$this->_template->cache_dir = $templateTmpFolder;
+			$this->_template->compile_dir = $templateTmpFolder;
         }		
 
         function sendUncachedOutput()
         {
             //$templateService = new TemplateService();
-            //$template = $templateService->Template( $this->_profile, "summary/rss" );
+            //$template = $templateService->Template( $this->_profile, "summary/rss" );           
 
             $config =& Config::getConfig();
             $this->_locale =& Locales::getLocale( $config->getValue("default_locale" ));




More information about the pLog-svn mailing list