[pLog-svn] r3569 - plog/trunk/class/template

Jon Daley plogworld at jon.limedaley.com
Tue Jun 13 19:26:26 GMT 2006


 	Yes, like that.  :)

On Tue, 13 Jun 2006, mark at devel.lifetype.net wrote:

> Author: mark
> Date: 2006-06-13 18:20:20 +0000 (Tue, 13 Jun 2006)
> New Revision: 3569
>
> Modified:
>   plog/trunk/class/template/templatesandbox.class.php
> Log:
> This regular expression is easier and more flexible. It will strip any version information before _ .
>
> Modified: plog/trunk/class/template/templatesandbox.class.php
> ===================================================================
> --- plog/trunk/class/template/templatesandbox.class.php	2006-06-13 17:56:11 UTC (rev 3568)
> +++ plog/trunk/class/template/templatesandbox.class.php	2006-06-13 18:20:20 UTC (rev 3569)
> @@ -166,7 +166,7 @@
> 		 */
> 		function toTemplateSetName( $uploadFile )
> 		{
> -            $fileWithoutVersion = preg_replace( '/[0-1]\.[0-9.]*_/', '', $uploadFile );
> +            $fileWithoutVersion = preg_replace( '/^[0-9.]*_/', '', $uploadFile );
>             $fileParts = explode( ".", $fileWithoutVersion );
>             $templateName = $fileParts[0];
>             return $templateName;
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn
>

**************************************
Jon Daley
http://jon.limedaley.com/

One might say that people who oversee things have
a gift of oversight.


More information about the pLog-svn mailing list