[pLog-svn] r1106 - in plugins/trunk: articlereferers authimage gravatar recentcomments recenttrackbacks topcommentposts topcommentvisitors topreadposts toptrackbackposts

mark at devel.plogworld.net mark at devel.plogworld.net
Wed Feb 16 11:02:52 GMT 2005


Author: mark
Date: 2005-02-16 11:02:51 +0000 (Wed, 16 Feb 2005)
New Revision: 1106

Modified:
   plugins/trunk/articlereferers/pluginarticlereferers.class.php
   plugins/trunk/authimage/pluginauthimage.class.php
   plugins/trunk/gravatar/plugingravatar.class.php
   plugins/trunk/recentcomments/pluginrecentcomments.class.php
   plugins/trunk/recenttrackbacks/pluginrecenttrackbacks.class.php
   plugins/trunk/topcommentposts/plugintopcommentposts.class.php
   plugins/trunk/topcommentvisitors/plugintopcommentvisitors.class.php
   plugins/trunk/topreadposts/plugintopreadposts.class.php
   plugins/trunk/toptrackbackposts/plugintoptrackbackposts.class.php
Log:
Modify Config::getValue("db_prefix") to Db::getPrefix().

Modified: plugins/trunk/articlereferers/pluginarticlereferers.class.php
===================================================================
--- plugins/trunk/articlereferers/pluginarticlereferers.class.php	2005-02-16 08:40:29 UTC (rev 1105)
+++ plugins/trunk/articlereferers/pluginarticlereferers.class.php	2005-02-16 11:02:51 UTC (rev 1106)
@@ -22,8 +22,7 @@
             $this->author = "Mark Wu";
             $this->desc = "This plugin offers you to get the referers of the specific article.";
   
-            $config =& Config::getConfig();
-            $this->prefix = $config->getValue('db_prefix');
+            $this->prefix = Db::getPrefix();
             
             $this->locales = Array( "en_UK" , "zh_TW" );
             

Modified: plugins/trunk/authimage/pluginauthimage.class.php
===================================================================
--- plugins/trunk/authimage/pluginauthimage.class.php	2005-02-16 08:40:29 UTC (rev 1105)
+++ plugins/trunk/authimage/pluginauthimage.class.php	2005-02-16 11:02:51 UTC (rev 1106)
@@ -19,7 +19,6 @@
     {
         var $pluginEnabled;
         var $default;
-        var $prefix;
         var $cacheFolder;
         
         function PluginAuthImage()
@@ -30,9 +29,6 @@
             $this->author = "Mark Wu";
             $this->desc = 'This plugin offers extra comment authentication for pLog. The idea is inspired by <a href="http://www.gudlyf.com/index.php?p=376">WordPress AuthImage Plugin</a> written by Gudlyf.';
 
-            $config =& Config::getConfig();
-            $this->cacheFolder = $config->getValue('temp_folder');
-
             $this->locales = Array( "en_UK" , "zh_TW" );
             
             $this->init();              

Modified: plugins/trunk/gravatar/plugingravatar.class.php
===================================================================
--- plugins/trunk/gravatar/plugingravatar.class.php	2005-02-16 08:40:29 UTC (rev 1105)
+++ plugins/trunk/gravatar/plugingravatar.class.php	2005-02-16 11:02:51 UTC (rev 1106)
@@ -14,7 +14,6 @@
 
     class PluginGravatar extends PluginBase
     {
-        var $prefix;
         var $pluginEnabled;
         var $rating;
         var $default;

Modified: plugins/trunk/recentcomments/pluginrecentcomments.class.php
===================================================================
--- plugins/trunk/recentcomments/pluginrecentcomments.class.php	2005-02-16 08:40:29 UTC (rev 1105)
+++ plugins/trunk/recentcomments/pluginrecentcomments.class.php	2005-02-16 11:02:51 UTC (rev 1106)
@@ -22,8 +22,7 @@
             $this->author = "Mark Wu";
             $this->desc = "This plugin offers the most recently article comments.";
   
-            $config =& Config::getConfig();
-            $this->prefix = $config->getValue('db_prefix');
+            $this->prefix = Db::getPrefix();
             
             $this->locales = Array( "en_UK" , "zh_TW" );
             

Modified: plugins/trunk/recenttrackbacks/pluginrecenttrackbacks.class.php
===================================================================
--- plugins/trunk/recenttrackbacks/pluginrecenttrackbacks.class.php	2005-02-16 08:40:29 UTC (rev 1105)
+++ plugins/trunk/recenttrackbacks/pluginrecenttrackbacks.class.php	2005-02-16 11:02:51 UTC (rev 1106)
@@ -21,8 +21,7 @@
             $this->author = "Mark Wu";
             $this->desc = "This plugin offers the most recently article trackbacks.";
 
-            $config =& Config::getConfig();
-            $this->prefix = $config->getValue('db_prefix');
+            $this->prefix = Db::getPrefix();
             
             $this->locales = Array( "en_UK" , "zh_TW" );
             

Modified: plugins/trunk/topcommentposts/plugintopcommentposts.class.php
===================================================================
--- plugins/trunk/topcommentposts/plugintopcommentposts.class.php	2005-02-16 08:40:29 UTC (rev 1105)
+++ plugins/trunk/topcommentposts/plugintopcommentposts.class.php	2005-02-16 11:02:51 UTC (rev 1106)
@@ -22,8 +22,7 @@
             $this->author = "Mark Wu";
             $this->desc = "This plugin offers the rank list of articles by number of comments.";
   
-            $config =& Config::getConfig();
-            $this->prefix = $config->getValue('db_prefix');
+            $this->prefix = Db::getPrefix();
             
             $this->locales = Array( "en_UK" , "zh_TW" );
             

Modified: plugins/trunk/topcommentvisitors/plugintopcommentvisitors.class.php
===================================================================
--- plugins/trunk/topcommentvisitors/plugintopcommentvisitors.class.php	2005-02-16 08:40:29 UTC (rev 1105)
+++ plugins/trunk/topcommentvisitors/plugintopcommentvisitors.class.php	2005-02-16 11:02:51 UTC (rev 1106)
@@ -20,8 +20,7 @@
             $this->author = "Mark Wu";
             $this->desc = "This plugin offers the rank list of visitors by number of comments.";
   
-            $config =& Config::getConfig();
-            $this->prefix = $config->getValue('db_prefix');
+            $this->prefix = Db::getPrefix();
             
             $this->db =& Db::getDb();
             

Modified: plugins/trunk/topreadposts/plugintopreadposts.class.php
===================================================================
--- plugins/trunk/topreadposts/plugintopreadposts.class.php	2005-02-16 08:40:29 UTC (rev 1105)
+++ plugins/trunk/topreadposts/plugintopreadposts.class.php	2005-02-16 11:02:51 UTC (rev 1106)
@@ -21,8 +21,8 @@
             $this->id = "topreadposts";
             $this->author = "Mark Wu";
             $this->desc = "This plugin offers the rank list of articles by number of read.";  
-            $config =& Config::getConfig();
-            $this->prefix = $config->getValue('db_prefix');
+
+            $this->prefix = Db::getPrefix();
             
             $this->locales = Array( "en_UK" , "zh_TW" );
             

Modified: plugins/trunk/toptrackbackposts/plugintoptrackbackposts.class.php
===================================================================
--- plugins/trunk/toptrackbackposts/plugintoptrackbackposts.class.php	2005-02-16 08:40:29 UTC (rev 1105)
+++ plugins/trunk/toptrackbackposts/plugintoptrackbackposts.class.php	2005-02-16 11:02:51 UTC (rev 1106)
@@ -22,8 +22,7 @@
             $this->author = "Mark Wu";
             $this->desc = "This plugin offers the rank list of articles by number of trackbacks.";
   
-            $config =& Config::getConfig();
-            $this->prefix = $config->getValue('db_prefix');
+            $this->prefix = Db::getPrefix();
             
             $this->locales = Array( "en_UK" , "zh_TW" );
             




More information about the pLog-svn mailing list