From 59cb36402d12f1436dce370d3d98099b251d0c96 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <jan.hendrik.willms@uni-oldenburg.de> Date: Wed, 18 Mar 2015 13:57:14 +0100 Subject: [PATCH] fix url_for() --- controllers/presenting.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/presenting.php b/controllers/presenting.php index 83e43d8..942cf13 100644 --- a/controllers/presenting.php +++ b/controllers/presenting.php @@ -37,7 +37,7 @@ class PresentingController extends PluginController { $sidebar = Sidebar::Get(); // Create search widget - $searchWidget = new SearchWidget($this->url_for('pluginmarket/presenting/all')); + $searchWidget = new SearchWidget($this->url_for('presenting/all')); $searchWidget->addNeedle(_('Suche'), 'search', true); $sidebar->addWidget($searchWidget); @@ -45,7 +45,7 @@ class PresentingController extends PluginController { $tagWidget = new LinkCloudWidget(); $tagWidget->setTitle(_("Beliebte Tags")); foreach ($this->tags as $tag) { - $tagWidget->addLink($tag['tag'], $this->url_for('pluginmarket/presenting/all', array('tag' => $tag['tag'])), $tag['number']); + $tagWidget->addLink($tag['tag'], $this->url_for('presenting/all', array('tag' => $tag['tag'])), $tag['number']); } $sidebar->addWidget($tagWidget); @@ -101,7 +101,7 @@ class PresentingController extends PluginController { } public function details_action($plugin_id) { - Navigation::addItem('/pluginmarket/presenting/details', new AutoNavigation(_('Details'), $this->url_for('pluginmarket/presenting/details/'.$plugin_id))); + Navigation::addItem('/pluginmarket/presenting/details', new AutoNavigation(_('Details'), $this->url_for('presenting/details/'.$plugin_id))); $this->marketplugin = new MarketPlugin($plugin_id); if (Request::isPost() && Request::submitted("delete_plugin") && $this->marketplugin->isRootable()) { $this->marketplugin->delete(); -- GitLab