[pLog-svn] r4258 - plugins/branches/lifetype-1.1/unported/randomimage

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Wed Nov 8 03:31:01 GMT 2006


Author: jondaley
Date: 2006-11-08 03:31:00 +0000 (Wed, 08 Nov 2006)
New Revision: 4258

Modified:
   plugins/branches/lifetype-1.1/unported/randomimage/pluginrandomimage.class.php
   plugins/branches/lifetype-1.1/unported/randomimage/readme.txt
Log:
updated for 1.1

Modified: plugins/branches/lifetype-1.1/unported/randomimage/pluginrandomimage.class.php
===================================================================
--- plugins/branches/lifetype-1.1/unported/randomimage/pluginrandomimage.class.php	2006-11-08 03:18:34 UTC (rev 4257)
+++ plugins/branches/lifetype-1.1/unported/randomimage/pluginrandomimage.class.php	2006-11-08 03:31:00 UTC (rev 4258)
@@ -4,7 +4,7 @@
     include_once( PLOG_CLASS_PATH."class/plugin/pluginmanager.class.php" );
     include_once( PLOG_CLASS_PATH."class/gallery/dao/galleryalbums.class.php" );
 
-define("RANDOMIMAGE_DEBUG", 1);
+define("RANDOMIMAGE_DEBUG", 0);
 
     /**
      * Plugin returns a randomly selected image from a given album
@@ -37,7 +37,6 @@
 
             $resources = new GalleryResources();
 
-
             $numResources = $resources->getNumUserResources(
                 $this->blogInfo->getOwner(), $album->getId(), GALLERY_RESOURCE_IMAGE);
                 
@@ -56,7 +55,8 @@
                 "AND resource_type='".GALLERY_RESOURCE_IMAGE."' ".
                 "LIMIT $whichResource, 1";
 
-            $result = $albums->_db->Execute($query);
+            $db =& Db::getDb();
+            $result = $db->Execute( $query ); 
             
             if(!$result){
                 if(RANDOMIMAGE_DEBUG)

Modified: plugins/branches/lifetype-1.1/unported/randomimage/readme.txt
===================================================================
--- plugins/branches/lifetype-1.1/unported/randomimage/readme.txt	2006-11-08 03:18:34 UTC (rev 4257)
+++ plugins/branches/lifetype-1.1/unported/randomimage/readme.txt	2006-11-08 03:31:00 UTC (rev 4258)
@@ -1,7 +1,9 @@
 Random Image plugin for LifeType
 Author: Jon Daley
 Contact URL: http://limedaley.com/
+Version: 1.1
 
+
 Example URL using this plugin: http://groshlink.net/ 
   (click into any of the categories to see the images on the right)
 



More information about the pLog-svn mailing list