From 18ad2fb96dcda5a5264fa2df8590548ad853e6be Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 22 Jan 2018 22:58:03 +0000 Subject: [PATCH] When RINO is set to a (now) invalid value, we set it to a valid one --- boot.php | 2 +- update.php | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/boot.php b/boot.php index eb3d4e9734..0caf591459 100644 --- a/boot.php +++ b/boot.php @@ -41,7 +41,7 @@ define('FRIENDICA_PLATFORM', 'Friendica'); define('FRIENDICA_CODENAME', 'Asparagus'); define('FRIENDICA_VERSION', '3.6-dev'); define('DFRN_PROTOCOL_VERSION', '2.23'); -define('DB_UPDATE_VERSION', 1244); +define('DB_UPDATE_VERSION', 1245); define('NEW_UPDATE_ROUTINE_VERSION', 1170); /** diff --git a/update.php b/update.php index 00b8d890ec..273e75de7d 100644 --- a/update.php +++ b/update.php @@ -161,3 +161,15 @@ function update_1244() { return UPDATE_SUCCESS; } + +function update_1245() { + $rino = Config::get('system', 'rino_encrypt'); + + if (!$rino) { + return UPDATE_SUCCESS; + } + + Config::set('system', 'rino_encrypt', 1); + + return UPDATE_SUCCESS; +} -- 2.39.5