Browse Source

don't have the version in 2 places

AD7six 14 years ago
parent
commit
4fd3bccf78
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lib/Cake/Config/config.php

+ 2 - 1
lib/Cake/Config/config.php

@@ -16,4 +16,5 @@
  * @since         CakePHP(tm) v 1.1.11.4062
  * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
  */
-return $config['Cake.version'] = '2.0.0';
+$versionFile = file(CAKE . 'VERSION.txt');
+return $config['Cake.version'] = array_pop($versionFile);