]> git.mxchange.org Git - friendica.git/commitdiff
When RINO is set to a (now) invalid value, we set it to a valid one
authorMichael <heluecht@pirati.ca>
Mon, 22 Jan 2018 22:58:03 +0000 (22:58 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 22 Jan 2018 22:58:03 +0000 (22:58 +0000)
boot.php
update.php

index eb3d4e973405383fb298c8ffd1ed9284feb9eb45..0caf59145914c7444061071f711a38fa214d6ac3 100644 (file)
--- 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);
 
 /**
index 00b8d890ecda5f1eba05c80073297bdfb6f621bd..273e75de7d53bccc84e49a548245120b731ca3f1 100644 (file)
@@ -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;
+}