Merge pull request #4310 from annando/rino-fix

When RINO is set to a (now) invalid value, we set it to a valid one
This commit is contained in:
Hypolite Petovan 2018-01-22 18:01:51 -05:00 committed by GitHub
commit 6502cd6d66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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_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);
/**

View 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;
}