diff -r 2398420f48e7 -r 979d99a0b00e install/includes/common.php --- a/install/includes/common.php Thu Jan 17 23:31:35 2008 -0500 +++ b/install/includes/common.php Fri Jan 18 10:47:24 2008 -0500 @@ -21,6 +21,23 @@ // If type is set to "rc", "beta", or "alpha", optionally another version number can be issued with the key 'sub': // 'sub' => '3' will produce Enano 1.1.1a3 / Enano 1.1.1 alpha 3 ); + +function installer_enano_version($long = false) +{ + global $installer_version; + static $keywords = array( + 'alpha' => 'a', + 'beta' => 'b', + 'RC' => 'rc' + ); + $v = $installer_version['version']; + if ( isset($installer_version['sub']) ) + { + $v .= ( $short ) ? $keywords[$installer_version['type']] : " {$installer_version['type']} "; + $v .= $installer_version['sub']; + } + return $v; +} // Determine Enano root directory