X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=update.php;h=bc14b3a29fbbca7b2a317d8d5a9a8fa3baced7ea;hb=65b0159282f7c702a17be399c703e9659e1efef5;hp=00b8d890ecda5f1eba05c80073297bdfb6f621bd;hpb=2bfd9f9d87cee6a7b9ed0739cf12d1350b47f0fe;p=friendica.git diff --git a/update.php b/update.php index 00b8d890ec..bc14b3a29f 100644 --- a/update.php +++ b/update.php @@ -7,6 +7,8 @@ use Friendica\Core\Worker; use Friendica\Database\DBM; use Friendica\Model\User; +require_once 'include/dba.php'; + /** * * update.php - automatic system update @@ -161,3 +163,24 @@ 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; +} + +function update_1247() { + // Removing hooks with the old name + dba::e("DELETE FROM `hook` +WHERE `hook` LIKE 'plugin_%'"); + + // Make sure we install the new renamed ones + Addon::reload(); +}