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

reto at devel.lifetype.net reto at devel.lifetype.net
Sun Feb 11 09:01:47 EST 2007


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
+?>



More information about the pLog-svn mailing list