1
0
Fork 0

When RINO is set to a (now) invalid value, we set it to a valid one

This commit is contained in:
Michael 2018-01-22 22:58:03 +00:00
parent cf6005c260
commit 18ad2fb96d
2 changed files with 13 additions and 1 deletions

View file

@ -41,7 +41,7 @@ define('FRIENDICA_PLATFORM', 'Friendica');
define('FRIENDICA_CODENAME', 'Asparagus'); define('FRIENDICA_CODENAME', 'Asparagus');
define('FRIENDICA_VERSION', '3.6-dev'); define('FRIENDICA_VERSION', '3.6-dev');
define('DFRN_PROTOCOL_VERSION', '2.23'); define('DFRN_PROTOCOL_VERSION', '2.23');
define('DB_UPDATE_VERSION', 1244); define('DB_UPDATE_VERSION', 1245);
define('NEW_UPDATE_ROUTINE_VERSION', 1170); define('NEW_UPDATE_ROUTINE_VERSION', 1170);
/** /**

View file

@ -161,3 +161,15 @@ function update_1244() {
return UPDATE_SUCCESS; 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;
}