equal
deleted
inserted
replaced
19 'version' => '1.1.1', |
19 'version' => '1.1.1', |
20 'type' => 'alpha' |
20 'type' => 'alpha' |
21 // If type is set to "rc", "beta", or "alpha", optionally another version number can be issued with the key 'sub': |
21 // If type is set to "rc", "beta", or "alpha", optionally another version number can be issued with the key 'sub': |
22 // 'sub' => '3' will produce Enano 1.1.1a3 / Enano 1.1.1 alpha 3 |
22 // 'sub' => '3' will produce Enano 1.1.1a3 / Enano 1.1.1 alpha 3 |
23 ); |
23 ); |
|
24 |
|
25 function installer_enano_version($long = false) |
|
26 { |
|
27 global $installer_version; |
|
28 static $keywords = array( |
|
29 'alpha' => 'a', |
|
30 'beta' => 'b', |
|
31 'RC' => 'rc' |
|
32 ); |
|
33 $v = $installer_version['version']; |
|
34 if ( isset($installer_version['sub']) ) |
|
35 { |
|
36 $v .= ( $short ) ? $keywords[$installer_version['type']] : " {$installer_version['type']} "; |
|
37 $v .= $installer_version['sub']; |
|
38 } |
|
39 return $v; |
|
40 } |
24 |
41 |
25 // Determine Enano root directory |
42 // Determine Enano root directory |
26 |
43 |
27 $enano_root = dirname(dirname(dirname(__FILE__))); |
44 $enano_root = dirname(dirname(dirname(__FILE__))); |
28 if ( preg_match('#/repo$#', $enano_root) && file_exists("$enano_root/../.enanodev") ) |
45 if ( preg_match('#/repo$#', $enano_root) && file_exists("$enano_root/../.enanodev") ) |