aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-12-09 16:28:35 -0800
committerfriendica <info@friendica.com>2012-12-09 16:28:35 -0800
commit7f7767064918e95524de324b4520943ee34e04c3 (patch)
tree116f48e54f9fde0f62bf949df335dfbffffca7d1 /boot.php
parent75ea0cfa32ea490314331100281183d775861789 (diff)
downloadvolse-hubzilla-7f7767064918e95524de324b4520943ee34e04c3.tar.gz
volse-hubzilla-7f7767064918e95524de324b4520943ee34e04c3.tar.bz2
volse-hubzilla-7f7767064918e95524de324b4520943ee34e04c3.zip
revise auto_update system so as not to conflict with pre-existing Friendica settings
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/boot.php b/boot.php
index cdf70c80d..f1ce32dbc 100644
--- a/boot.php
+++ b/boot.php
@@ -17,7 +17,7 @@ define ( 'FRIENDICA_PLATFORM', 'Friendica Red');
define ( 'FRIENDICA_VERSION', trim(file_get_contents('version.inc')) . 'R');
define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
define ( 'ZOT_REVISION', 1 );
-define ( 'DB_UPDATE_VERSION', 1154 );
+define ( 'DB_UPDATE_VERSION', 1000 );
define ( 'EOL', "<br />\r\n" );
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
@@ -868,9 +868,9 @@ function is_ajax() {
if(! function_exists('check_config')) {
function check_config(&$a) {
- $build = get_config('system','build');
+ $build = get_config('system','db_version');
if(! x($build))
- $build = set_config('system','build',DB_UPDATE_VERSION);
+ $build = set_config('system','db_version',DB_UPDATE_VERSION);
// $url = get_config('system','baseurl');
@@ -906,7 +906,7 @@ function check_config(&$a) {
if(DB_UPDATE_VERSION == UPDATE_VERSION) {
for($x = $stored; $x < $current; $x ++) {
- if(function_exists('update_' . $x)) {
+ if(function_exists('update_r' . $x)) {
// There could be a lot of processes running or about to run.
// We want exactly one process to run the update command.
@@ -916,13 +916,13 @@ function check_config(&$a) {
// If the update fails or times-out completely you may need to
// delete the config entry to try again.
- if(get_config('database','update_' . $x))
+ if(get_config('database','update_r' . $x))
break;
- set_config('database','update_' . $x, '1');
+ set_config('database','update_r' . $x, '1');
// call the specific update
- $func = 'update_' . $x;
+ $func = 'update_r' . $x;
$retval = $func();
if($retval) {
//send the administrator an e-mail
@@ -943,11 +943,11 @@ function check_config(&$a) {
logger('CRITICAL: Update Failed: '. $x);
}
else
- set_config('database','update_' . $x, 'success');
+ set_config('database','update_r' . $x, 'success');
}
}
- set_config('system','build', DB_UPDATE_VERSION);
+ set_config('system','db_version', DB_UPDATE_VERSION);
}
}
}