[pLog-svn] r5203 - plog/branches/lifetype-1.2
Oscar Renalias
oscar at renalias.net
Tue Mar 27 16:27:57 EDT 2007
So you're saying that we had an issue with files whose extension was
in upper case? Or in lower case? Or what, I don't understand the fix :-)
On 27 Mar 2007, at 23:28, mark at devel.lifetype.net wrote:
> 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 = "";
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>
More information about the pLog-svn
mailing list