[pLog-svn] r1160 - in plugins/trunk: authimage blogtimes flickr

mark at devel.plogworld.net mark at devel.plogworld.net
Tue Feb 22 02:52:49 GMT 2005


Author: mark
Date: 2005-02-22 02:52:48 +0000 (Tue, 22 Feb 2005)
New Revision: 1160

Modified:
   plugins/trunk/authimage/pluginauthimage.class.php
   plugins/trunk/blogtimes/pluginblogtimes.class.php
   plugins/trunk/flickr/pluginflickr.class.php
Log:
Fix /tmp/whatever/1/whatever/1/....... problem.

Modified: plugins/trunk/authimage/pluginauthimage.class.php
===================================================================
--- plugins/trunk/authimage/pluginauthimage.class.php	2005-02-21 16:36:13 UTC (rev 1159)
+++ plugins/trunk/authimage/pluginauthimage.class.php	2005-02-22 02:52:48 UTC (rev 1160)
@@ -29,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();              
@@ -54,6 +51,8 @@
  
 		function register()
 		{
+            $config =& Config::getConfig();
+            $this->cacheFolder = $config->getValue('temp_folder');
 			$this->cacheFolder = $this->cacheFolder.'/authimage/'.$this->blogInfo->getId();
 			if( !File::exists( $this->cacheFolder )) {
 			    $this->log->debug( "creating temporary folder".$this->cacheFolder );

Modified: plugins/trunk/blogtimes/pluginblogtimes.class.php
===================================================================
--- plugins/trunk/blogtimes/pluginblogtimes.class.php	2005-02-21 16:36:13 UTC (rev 1159)
+++ plugins/trunk/blogtimes/pluginblogtimes.class.php	2005-02-22 02:52:48 UTC (rev 1160)
@@ -36,8 +36,6 @@
   
             $this->prefix = Db::getPrefix();
             $this->db =& Db::getDb();
-            $config =& Config::getConfig();
-            $this->cacheFolder = $config->getValue('temp_folder');            
             
             $this->locales = Array( "en_UK" , "zh_TW" );
             
@@ -57,6 +55,8 @@
 
 		function register()
 		{
+            $config =& Config::getConfig();
+            $this->cacheFolder = $config->getValue('temp_folder');
 			$this->cacheFolder = $this->cacheFolder.'/blogtimes/'.$this->blogInfo->getId();
 			if( !File::exists( $this->cacheFolder )) {
 			    $this->log->debug( "creating temporary folder".$this->cacheFolder );

Modified: plugins/trunk/flickr/pluginflickr.class.php
===================================================================
--- plugins/trunk/flickr/pluginflickr.class.php	2005-02-21 16:36:13 UTC (rev 1159)
+++ plugins/trunk/flickr/pluginflickr.class.php	2005-02-22 02:52:48 UTC (rev 1160)
@@ -44,9 +44,6 @@
             $this->author = "Mark Wu";
             $this->desc = 'This plugin let you integrate your Flickr with pLog. It is inspired by <a href="http://www.worrad.com/archives/2004/11/23/flickr-gallery-wp-plugin/">Wordpress Flickr Gallery Plugin</a> written by Ray.';
 
-            $config =& Config::getConfig();
-            $this->cacheFolder = $config->getValue('temp_folder');
-
             $this->locales = Array( "en_UK" , "zh_TW" );
             
             $this->init();                     
@@ -66,6 +63,8 @@
  
 		function register()
 		{
+            $config =& Config::getConfig();
+            $this->cacheFolder = $config->getValue('temp_folder');
 			$this->cacheFolder = $this->cacheFolder.'/flickr/'.$this->blogInfo->getId();
 			if( !File::exists( $this->cacheFolder )) {
 			    $this->log->debug( "creating temporary folder".$this->cacheFolder );




More information about the pLog-svn mailing list