[pLog-svn] r4834 - plugins/branches/lifetype-1.2/templateeditor

oscar at devel.lifetype.net oscar at devel.lifetype.net
Thu Feb 22 16:40:33 EST 2007


Author: oscar
Date: 2007-02-22 16:40:33 -0500 (Thu, 22 Feb 2007)
New Revision: 4834

Modified:
   plugins/branches/lifetype-1.2/templateeditor/plugintemplateeditor.class.php
Log:
implemented support for the $source parameter


Modified: plugins/branches/lifetype-1.2/templateeditor/plugintemplateeditor.class.php
===================================================================
--- plugins/branches/lifetype-1.2/templateeditor/plugintemplateeditor.class.php	2007-02-22 21:22:29 UTC (rev 4833)
+++ plugins/branches/lifetype-1.2/templateeditor/plugintemplateeditor.class.php	2007-02-22 21:40:33 UTC (rev 4834)
@@ -9,9 +9,9 @@
 	{
 		var $pluginEnabled;
 		
-		function PluginTemplateEditor()
+		function PluginTemplateEditor( $source )
 		{
-			$this->PluginBase();
+			$this->PluginBase( $source );
 
 			$this->id      = "templateeditor";
 			$this->author  = "Mark Wu";
@@ -22,7 +22,8 @@
 
 			$this->locales = Array( "en_UK" , "zh_TW" , "zh_CN", "es_ES" );
 
-			$this->init();
+            if( $source == "admin" )
+                $this->init();
 		}
 
 		function init()



More information about the pLog-svn mailing list