[pLog-svn] r3570 - plog/trunk/class/template

mark at devel.lifetype.net mark at devel.lifetype.net
Tue Jun 13 18:38:27 GMT 2006


Author: mark
Date: 2006-06-13 18:38:27 +0000 (Tue, 13 Jun 2006)
New Revision: 3570

Modified:
   plog/trunk/class/template/templatesandbox.class.php
Log:
We have to move the templatesetvalidator.class.php to the top of file to avoid the undefined constant error.

Modified: plog/trunk/class/template/templatesandbox.class.php
===================================================================
--- plog/trunk/class/template/templatesandbox.class.php	2006-06-13 18:20:20 UTC (rev 3569)
+++ plog/trunk/class/template/templatesandbox.class.php	2006-06-13 18:38:27 UTC (rev 3570)
@@ -1,6 +1,7 @@
 <?php
 
     include_once( PLOG_CLASS_PATH.'class/config/config.class.php' );
+	include_once( PLOG_CLASS_PATH.'class/data/validator/templatesetvalidator.class.php' );
 
     define( 'TEMPLATE_SANDBOX_ERROR_UNPACKING', -100 );
     define( 'TEMPLATE_SANDBOX_ERROR_FORBIDDEN_EXTENSIONS', -101 );
@@ -126,7 +127,6 @@
         	if( $templateFolder[strlen($templateFolder)-1] != '/')
             	$templateFolder .= '/';
 
-			include_once( PLOG_CLASS_PATH.'class/data/validator/templatesetvalidator.class.php' );
             $tv = new TemplateSetValidator($templateName, $templateFolder );
             if( ($errorCode = $tv->validate()) < 0 ) {
             	return $errorCode;



More information about the pLog-svn mailing list