[pLog-svn] r5602 - plog/branches/lifetype-1.2/class/xml/rssparser/magpierss

mark at devel.lifetype.net mark at devel.lifetype.net
Mon Jul 2 04:45:51 EDT 2007


Author: mark
Date: 2007-07-02 04:45:51 -0400 (Mon, 02 Jul 2007)
New Revision: 5602

Modified:
   plog/branches/lifetype-1.2/class/xml/rssparser/magpierss/rss_fetch.inc
Log:
It is a weird bug.

The magpie_dir get from windows is "C:\PHP5\lifetype\class\xml\magpie", but we defined in rssparser.php is "C:\PHP5\lifetype\class/xml/magpie".

The lt_include will treat it as two different path, so the file will include again .... 

The patch I commited fixed this bug under windows.

Modified: plog/branches/lifetype-1.2/class/xml/rssparser/magpierss/rss_fetch.inc
===================================================================
--- plog/branches/lifetype-1.2/class/xml/rssparser/magpierss/rss_fetch.inc	2007-07-02 07:29:02 UTC (rev 5601)
+++ plog/branches/lifetype-1.2/class/xml/rssparser/magpierss/rss_fetch.inc	2007-07-02 08:45:51 UTC (rev 5602)
@@ -24,14 +24,14 @@
 }
 
 if (!defined('MAGPIE_DIR')) {
-    define('MAGPIE_DIR', dirname(__FILE__) . DIR_SEP);
+    define('MAGPIE_DIR', PLOG_CLASS_PATH.'class/xml/rssparser/magpierss/');
 }
 
 lt_include( MAGPIE_DIR . 'rss_parse.inc' );
 lt_include( MAGPIE_DIR . 'rss_cache.inc' );
 
 // for including 3rd party libraries
-define('MAGPIE_EXTLIB', MAGPIE_DIR . 'extlib' . DIR_SEP);
+define('MAGPIE_EXTLIB', MAGPIE_DIR . 'extlib/' );
 lt_include( MAGPIE_EXTLIB . 'Snoopy.class.inc');
 
 



More information about the pLog-svn mailing list