[pLog-svn] r5203 - plog/branches/lifetype-1.2

mark at devel.lifetype.net mark at devel.lifetype.net
Tue Mar 27 16:28:23 EDT 2007


Author: mark
Date: 2007-03-27 16:28:23 -0400 (Tue, 27 Mar 2007)
New Revision: 5203

Modified:
   plog/branches/lifetype-1.2/wizard.php
Log:
Fix a resource transformers bug.

In 1.1 implementation, the filename will convert to blogid-resourceid.extension. The extension will also converted to lower case.

So, we need to add this fix, or the upgrade wizard can't find those encoded files in 1.1.

Modified: plog/branches/lifetype-1.2/wizard.php
===================================================================
--- plog/branches/lifetype-1.2/wizard.php	2007-03-27 20:18:53 UTC (rev 5202)
+++ plog/branches/lifetype-1.2/wizard.php	2007-03-27 20:28:23 UTC (rev 5203)
@@ -1772,7 +1772,7 @@
 				
 				// get the file extension
 				if(( $extPos = strrpos( $row["file_name"], "." )) !== false ) {					
-					$fileExt = substr( $row["file_name"], $extPos+1, strlen( $row["file_name"] ));
+					$fileExt = strtolower( substr( $row["file_name"], $extPos+1, strlen( $row["file_name"] )));
 				}
 				else {
 					$fileExt = "";



More information about the pLog-svn mailing list