]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/updater/Updater.php
Merge branch 'v0.11' into stable
[github/shaarli/Shaarli.git] / application / updater / Updater.php
index f12e351673640ddff963981d1232543a4f17979a..30e5247bc43dab93c7a5c4afb42a96541d04404a 100644 (file)
@@ -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());
@@ -269,6 +268,8 @@ class Updater
     }
 
     /**
+<<<<<<< HEAD
+=======
      * Rename tags starting with a '-' to work with tag exclusion search.
      */
     public function updateMethodRenameDashTags()
@@ -550,4 +551,14 @@ class Updater
 
         return true;
     }
+
+    /**
+     * Remove redirector settings.
+     */
+    public function updateMethodRemoveRedirector()
+    {
+        $this->conf->remove('redirector');
+        $this->conf->write(true);
+        return true;
+    }
 }