Fix version number warning in installer common
authorDan
Sun, 11 Jan 2009 21:30:46 -0500
changeset 803 ab64a963e492
parent 802 59cce2313f9d
child 804 4891baa203da
Fix version number warning in installer common
install/includes/common.php
--- a/install/includes/common.php	Sun Jan 04 01:43:16 2009 -0500
+++ b/install/includes/common.php	Sun Jan 11 21:30:46 2009 -0500
@@ -33,7 +33,7 @@
   $v = $installer_version['version'];
   if ( isset($installer_version['sub']) )
   {
-    $v .= ( $short ) ? $keywords[$installer_version['type']] : " {$installer_version['type']} ";
+    $v .= ( !$long ) ? $keywords[$installer_version['type']] : " {$installer_version['type']} ";
     $v .= $installer_version['sub'];
   }
   return $v;
@@ -79,7 +79,7 @@
 
 // is Enano already installed?
 @include(ENANO_ROOT . '/config.php');
-if ( defined('ENANO_INSTALLED') && defined('ENANO_DANGEROUS') )
+if ( defined('ENANO_INSTALLED') && defined('ENANO_DANGEROUS') && !isset($_GET['debug_warn_php4']) )
 {
   $title = 'Installation locked';
   require('includes/common.php');