includes/functions.php
changeset 1203 c6587072e4c4
parent 1198 3ec9ac297045
child 1206 50f6c144ec68
equal deleted inserted replaced
1202:5d63267470cd 1203:c6587072e4c4
  1356  * @return string
  1356  * @return string
  1357  */
  1357  */
  1358 
  1358 
  1359 function enano_version($long = false, $no_nightly = false)
  1359 function enano_version($long = false, $no_nightly = false)
  1360 {
  1360 {
       
  1361   if ( !defined('ENANO_CONFIG_FETCHED') )
       
  1362   {
       
  1363     return function_exists('installer_enano_version') ? installer_enano_version() : $GLOBALS['enano_version'];
       
  1364   }
  1361   $r = getConfig('enano_version');
  1365   $r = getConfig('enano_version');
  1362   $rc = ( $long ) ? ' release candidate ' : 'RC';
  1366   $rc = ( $long ) ? ' release candidate ' : 'RC';
  1363   $b = ( $long ) ? ' beta ' : 'b';
  1367   $b = ( $long ) ? ' beta ' : 'b';
  1364   $a = ( $long ) ? ' alpha ' : 'a';
  1368   $a = ( $long ) ? ' alpha ' : 'a';
  1365   if($v = getConfig('enano_rc_version')) $r .= $rc.$v;
  1369   if($v = getConfig('enano_rc_version')) $r .= $rc.$v;