[pLog-svn] r1076 - plugins/trunk/authimage

mark at devel.plogworld.net mark at devel.plogworld.net
Mon Feb 14 19:50:24 GMT 2005


Author: mark
Date: 2005-02-14 19:50:24 +0000 (Mon, 14 Feb 2005)
New Revision: 1076

Modified:
   plugins/trunk/authimage/pluginauthimage.class.php
Log:
Fix a typo error. should be plugin_authimage_default, not plugin_authimage_background

Modified: plugins/trunk/authimage/pluginauthimage.class.php
===================================================================
--- plugins/trunk/authimage/pluginauthimage.class.php	2005-02-14 19:41:55 UTC (rev 1075)
+++ plugins/trunk/authimage/pluginauthimage.class.php	2005-02-14 19:50:24 UTC (rev 1076)
@@ -18,7 +18,7 @@
     class PluginAuthImage extends PluginBase
     {
         var $pluginEnabled;
-        var $background;
+        var $default;
         var $prefix;
         var $cacheFolder;
         
@@ -65,7 +65,7 @@
 			$this->pluginEnabled = $blogSettings->getValue( "plugin_authimage_enabled" );
 			$this->length = $blogSettings->getValue( "plugin_authimage_length" );
 			$this->key = $blogSettings->getValue( "plugin_authimage_key" );
-			$this->background = $blogSettings->getValue( "plugin_authimage_background" );
+			$this->default = $blogSettings->getValue( "plugin_authimage_default" );
 		}
 
 	    function isEnabled()
@@ -94,7 +94,7 @@
         function showImage() {
             $code = $this->generateCode();
             $encrypt = $this->encrypt($code, $this->key);
-            $background = AUTHIMAGE_BACKGROUND_FOLDER.$this->background;
+            $background = AUTHIMAGE_BACKGROUND_FOLDER.$this->default;
             $tempFile = $this->cacheFolder."/".$encrypt.".gif";
             
             $image = @imagecreatefromgif($background) or die("Cannot Initialize new GD image stream"); 




More information about the pLog-svn mailing list