install/includes/common.php
changeset 354 979d99a0b00e
parent 349 fdaf9070566c
child 390 9bcc185dc151
--- 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