[pLog-svn] r5192 - plugins/branches/lifetype-1.2/tagcloud

pwestbro at devel.lifetype.net pwestbro at devel.lifetype.net
Mon Mar 26 01:52:35 EDT 2007


Author: pwestbro
Date: 2007-03-26 01:52:35 -0400 (Mon, 26 Mar 2007)
New Revision: 5192

Modified:
   plugins/branches/lifetype-1.2/tagcloud/plugintagcloud.class.php
Log:
Fixed the tag cloud so that it doesn't return a cloud if the plugin has been disabled


Modified: plugins/branches/lifetype-1.2/tagcloud/plugintagcloud.class.php
===================================================================
--- plugins/branches/lifetype-1.2/tagcloud/plugintagcloud.class.php	2007-03-25 20:08:15 UTC (rev 5191)
+++ plugins/branches/lifetype-1.2/tagcloud/plugintagcloud.class.php	2007-03-26 05:52:35 UTC (rev 5192)
@@ -241,16 +241,20 @@
 	*/
     function getTagCloud(){
 
-        $saveFile = $this->cacheFolder."/tagcloud";  
+	    $Cloud = '';
 	    
-	    $Cloud = '';
-
-        if(File::isReadable($saveFile)){
-            $fh = fopen( $saveFile, "r");
-            if ($fh)
-            {
-                $Cloud = fread($fh, filesize($saveFile));
-                fclose($fh);
+        if ($this->isEnabled())
+        {
+            $saveFile = $this->cacheFolder."/tagcloud";  
+            
+    
+            if(File::isReadable($saveFile)){
+                $fh = fopen( $saveFile, "r");
+                if ($fh)
+                {
+                    $Cloud = fread($fh, filesize($saveFile));
+                    fclose($fh);
+                }
             }
         }
 



More information about the pLog-svn mailing list