[pLog-svn] r1253 - plugins/trunk/templateeditor/class/view

mark at devel.plogworld.net mark at devel.plogworld.net
Mon Feb 28 19:23:44 GMT 2005


Author: mark
Date: 2005-02-28 19:23:44 +0000 (Mon, 28 Feb 2005)
New Revision: 1253

Modified:
   plugins/trunk/templateeditor/class/view/pluginblogedittemplatefileview.class.php
   plugins/trunk/templateeditor/class/view/pluginsiteedittemplatefileview.class.php
Log:
Really hate myself, always forgot something. Add a if statement to prevent the maxBackupFiles =="", give it a defalut value 5.

Modified: plugins/trunk/templateeditor/class/view/pluginblogedittemplatefileview.class.php
===================================================================
--- plugins/trunk/templateeditor/class/view/pluginblogedittemplatefileview.class.php	2005-02-28 19:19:03 UTC (rev 1252)
+++ plugins/trunk/templateeditor/class/view/pluginblogedittemplatefileview.class.php	2005-02-28 19:23:44 UTC (rev 1253)
@@ -26,6 +26,7 @@
 		{
             $config =& Config::getConfig();
             $maxBackupFiles = $config->getValue( "plugin_templateeditor_maxbackupfiles" );
+            if ($maxBackupFiles == "") $maxBackupFiles = 5;
             		    
 			// get a list with all the specific template files 
         	$ts = new TemplateSetStorage();

Modified: plugins/trunk/templateeditor/class/view/pluginsiteedittemplatefileview.class.php
===================================================================
--- plugins/trunk/templateeditor/class/view/pluginsiteedittemplatefileview.class.php	2005-02-28 19:19:03 UTC (rev 1252)
+++ plugins/trunk/templateeditor/class/view/pluginsiteedittemplatefileview.class.php	2005-02-28 19:23:44 UTC (rev 1253)
@@ -26,6 +26,7 @@
 		{
             $config =& Config::getConfig();
             $maxBackupFiles = $config->getValue( "plugin_templateeditor_maxbackupfiles" );
+            if ($maxBackupFiles == "") $maxBackupFiles = 5;
 
 			// get a list with all the specific template files 
         	$ts = new TemplateSetStorage();




More information about the pLog-svn mailing list