X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2Fupdater%2FUpdater.php;h=beb9ea9b7517613cd9c2ca01c884ba239f250355;hb=refs%2Fpull%2F1269%2Fhead;hp=55251a30bb732405b32cbf6474054a5853bbd99f;hpb=bcf056c9d92e5240e645c76a4cdc8ae159693f9a;p=github%2Fshaarli%2FShaarli.git diff --git a/application/updater/Updater.php b/application/updater/Updater.php index 55251a30..beb9ea9b 100644 --- a/application/updater/Updater.php +++ b/application/updater/Updater.php @@ -2,12 +2,12 @@ namespace Shaarli\Updater; -use ApplicationUtils; use Exception; use RainTPL; use ReflectionClass; use ReflectionException; use ReflectionMethod; +use Shaarli\ApplicationUtils; use Shaarli\Bookmark\LinkDB; use Shaarli\Bookmark\LinkFilter; use Shaarli\Config\ConfigJson; @@ -218,7 +218,6 @@ class Updater try { $this->conf->set('general.title', escape($this->conf->get('general.title'))); $this->conf->set('general.header_link', escape($this->conf->get('general.header_link'))); - $this->conf->set('redirector.url', escape($this->conf->get('redirector.url'))); $this->conf->write($this->isLoggedIn); } catch (Exception $e) { error_log($e->getMessage()); @@ -550,4 +549,14 @@ class Updater return true; } + + /** + * Remove redirector settings. + */ + public function updateMethodRemoveRedirector() + { + $this->conf->remove('redirector'); + $this->conf->write(true); + return true; + } }