diff options
author | Friendika <info@friendika.com> | 2011-03-09 16:57:22 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-03-09 16:57:22 -0800 |
commit | 7b9dff1db7a1a03e237103ff28a4ec32d40af959 (patch) | |
tree | 12fd64786e08053f70d7218cd2fc98d2fe741b0c /boot.php | |
parent | 1c779e20618baf0d348ad52bc877d9a7a7923641 (diff) | |
download | volse-hubzilla-7b9dff1db7a1a03e237103ff28a4ec32d40af959.tar.gz volse-hubzilla-7b9dff1db7a1a03e237103ff28a4ec32d40af959.tar.bz2 volse-hubzilla-7b9dff1db7a1a03e237103ff28a4ec32d40af959.zip |
automated versioning
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -2,9 +2,9 @@ set_time_limit(0); -define ( 'BUILD_ID', 1040 ); -define ( 'FRIENDIKA_VERSION', '2.10.0912' ); +define ( 'FRIENDIKA_VERSION', '2.1.913' ); define ( 'DFRN_PROTOCOL_VERSION', '2.1' ); +define ( 'DB_UPDATE_VERSION', 1040 ); define ( 'EOL', "<br />\r\n" ); define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' ); @@ -435,15 +435,15 @@ function check_config(&$a) { $build = get_config('system','build'); if(! x($build)) - $build = set_config('system','build',BUILD_ID); + $build = set_config('system','build',DB_UPDATE_VERSION); $url = get_config('system','url'); if(! x($url)) $url = set_config('system','url',$a->get_baseurl()); - if($build != BUILD_ID) { + if($build != DB_UPDATE_VERSION) { $stored = intval($build); - $current = intval(BUILD_ID); + $current = intval(DB_UPDATE_VERSION); if(($stored < $current) && file_exists('update.php')) { // We're reporting a different version than what is currently installed. // Run any existing update scripts to bring the database up to current. @@ -455,7 +455,7 @@ function check_config(&$a) { $func($a); } } - set_config('system','build', BUILD_ID); + set_config('system','build', DB_UPDATE_VERSION); } } |