[pLog-svn] r4845 - in plugins/branches/lifetype-1.2: . reflection unported

pwestbro at devel.lifetype.net pwestbro at devel.lifetype.net
Thu Feb 22 19:29:30 EST 2007


Author: pwestbro
Date: 2007-02-22 19:29:30 -0500 (Thu, 22 Feb 2007)
New Revision: 4845

Added:
   plugins/branches/lifetype-1.2/reflection/
Removed:
   plugins/branches/lifetype-1.2/unported/reflection/
Modified:
   plugins/branches/lifetype-1.2/reflection/pluginreflection.class.php
Log:
Ported the reflection plugin


Copied: plugins/branches/lifetype-1.2/reflection (from rev 4843, plugins/branches/lifetype-1.2/unported/reflection)

Modified: plugins/branches/lifetype-1.2/reflection/pluginreflection.class.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/reflection/pluginreflection.class.php	2007-02-22 22:44:30 UTC (rev 4843)
+++ plugins/branches/lifetype-1.2/reflection/pluginreflection.class.php	2007-02-23 00:29:30 UTC (rev 4845)
@@ -25,9 +25,9 @@
 	{
 		var $pluginEnabled;
 		
-		function PluginReflection()
+		function PluginReflection( $source = "" )
 		{
-			$this->PluginBase();
+			$this->PluginBase($source);
 
 			$this->id      = "reflection";
 			$this->author  = "Paul Westbrook";
@@ -35,10 +35,11 @@
 
 			$this->locales = Array( "en_UK");
 
-			$this->init();
+			if( $source == "admin" )
+				$this->initAdmin();
 		}
 
-		function init()
+		function initAdmin()
 		{
             $this->registerAdminAction( "reflectionConfig", "PluginReflectionConfigAction" );
 			$this->registerAdminAction( "updateReflectionConfig", "PluginReflectionUpdateConfigAction" );



More information about the pLog-svn mailing list