[pLog-svn] r5308 - plugins/branches/lifetype-1.2/gallery

oscar at devel.lifetype.net oscar at devel.lifetype.net
Sat Apr 14 12:36:46 EDT 2007


Author: oscar
Date: 2007-04-14 12:36:45 -0400 (Sat, 14 Apr 2007)
New Revision: 5308

Modified:
   plugins/branches/lifetype-1.2/gallery/plugingallery.class.php
Log:
Fix for the gallery2 plugin, as per http://bugs.lifetype.net/view.php?id=1263


Modified: plugins/branches/lifetype-1.2/gallery/plugingallery.class.php
===================================================================
--- plugins/branches/lifetype-1.2/gallery/plugingallery.class.php	2007-04-14 14:10:28 UTC (rev 5307)
+++ plugins/branches/lifetype-1.2/gallery/plugingallery.class.php	2007-04-14 16:36:45 UTC (rev 5308)
@@ -31,14 +31,22 @@
         $this->id = "gallery";
         $this->author = "Laurent Vauthrin";
         $this->desc = "Integrates gallery2 into LifeType 1.2.";
-        $this->version = "20070321";
+        $this->version = "20070405";
 
         // Setup the locale
         $this->locales = Array( "en_UK" );
 
-	if ($source == "admin")
-	    $this->initAdmin();
+		if ($source == "admin")
+	    	$this->initAdmin();
+		else
+		    $this->init();	
     }
+
+	function init()
+	{
+		// Register the actions
+		$this->registerBlogAction( "gallery", "PluginGalleryShowAction" );
+	}
     
     function initAdmin()
     {



More information about the pLog-svn mailing list