From 6f4a3a0237b017a3fb70546b539ad9caf9e7a1aa Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <jan.hendrik.willms@uni-oldenburg.de>
Date: Wed, 18 Mar 2015 14:10:01 +0100
Subject: [PATCH] fix redirect()s

---
 controllers/approving.php  | 2 +-
 controllers/myplugins.php  | 4 ++--
 controllers/presenting.php | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/controllers/approving.php b/controllers/approving.php
index 4e8ce0b..8c348f5 100644
--- a/controllers/approving.php
+++ b/controllers/approving.php
@@ -65,7 +65,7 @@ class ApprovingController extends PluginController {
         );
 
         PageLayout::postMessage(MessageBox::success(_("Review wurde gespeichert.")));
-        $this->redirect("pluginmarket/approving/overview");
+        $this->redirect('approving/overview');
     }
 
 }
\ No newline at end of file
diff --git a/controllers/myplugins.php b/controllers/myplugins.php
index 18b3958..5c511d6 100644
--- a/controllers/myplugins.php
+++ b/controllers/myplugins.php
@@ -135,7 +135,7 @@ class MypluginsController extends PluginController {
             }
         }
         PageLayout::postMessage(MessageBox::success(_("Plugin wurde gespeichert.")));
-        $this->redirect("pluginmarket/presenting/details/".$this->marketplugin->getId());
+        $this->redirect('presenting/details/' . $this->marketplugin->getId());
     }
 
     public function save_release_action() {
@@ -158,7 +158,7 @@ class MypluginsController extends PluginController {
         $this->release->store();
 
         PageLayout::postMessage(MessageBox::success(_("Release wurde gespeichert.")));
-        $this->redirect("pluginmarket/presenting/details/".$this->release->plugin->getId());
+        $this->redirect('presenting/details/' . $this->release->plugin->getId());
     }
 
 }
\ No newline at end of file
diff --git a/controllers/presenting.php b/controllers/presenting.php
index 942cf13..a2b341b 100644
--- a/controllers/presenting.php
+++ b/controllers/presenting.php
@@ -106,7 +106,7 @@ class PresentingController extends PluginController {
         if (Request::isPost() && Request::submitted("delete_plugin") && $this->marketplugin->isRootable()) {
             $this->marketplugin->delete();
             PageLayout::postMessage(MessageBox::success(_("Plugin wurde gel�scht.")));
-            $this->redirect("pluginmarket/presenting/overview");
+            $this->redirect('presenting/overview');
         }
 
     }
@@ -161,7 +161,7 @@ class PresentingController extends PluginController {
         );
 
         PageLayout::postMessage(MessageBox::success(_("Review/Bewertung wurde gespeichert.")));
-        $this->redirect("pluginmarket/presenting/details/".$plugin_id);
+        $this->redirect('presenting/details/' . $plugin_id);
     }
 
     public function download_action($release) {
-- 
GitLab