[pLog-svn] r4713 - plog/branches/lifetype-1.2/class/misc

Jon Daley plogworld at jon.limedaley.com
Sun Feb 11 18:32:05 EST 2007


 	Probably this shouldn't be an include_once, but just an include?

On Sun, 11 Feb 2007, reto at devel.lifetype.net wrote:

> Author: reto
> Date: 2007-02-11 09:01:46 -0500 (Sun, 11 Feb 2007)
> New Revision: 4713
>
> Modified:
>   plog/branches/lifetype-1.2/class/misc/version.class.php
> Log:
> the version file is working again.
>
>
>
> Modified: plog/branches/lifetype-1.2/class/misc/version.class.php
> ===================================================================
> --- plog/branches/lifetype-1.2/class/misc/version.class.php	2007-02-11 14:00:59 UTC (rev 4712)
> +++ plog/branches/lifetype-1.2/class/misc/version.class.php	2007-02-11 14:01:46 UTC (rev 4713)
> @@ -25,11 +25,12 @@
> 			lt_include( PLOG_CLASS_PATH."class/file/file.class.php" );
>             $versionFile = PLOG_CLASS_PATH."version.php";
> 			$version = "undefined";
> -            if( File::isReadable( $versionFile ))
> -                lt_include( $versionFile );
> -            else
> +
> +            if( File::isReadable( $versionFile )) {
> +                include_once( $versionFile );
> +            } else {
>                 $version = "UNKNOWN";
> -
> +            }
>             return $version;
>         }
>
> @@ -58,4 +59,4 @@
> 			return( version_compare( $v1, $v2 ));
> 		}
>     }
> -?>
> \ No newline at end of file
> +?>
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>

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

With memory prices this low, who needs to deallocate memory?


More information about the pLog-svn mailing list