Skip to content
Snippets Groups Projects
Commit 59cb3640 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fix url_for()

parent 8ac1ef0f
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ class PresentingController extends PluginController { ...@@ -37,7 +37,7 @@ class PresentingController extends PluginController {
$sidebar = Sidebar::Get(); $sidebar = Sidebar::Get();
// Create search widget // 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); $searchWidget->addNeedle(_('Suche'), 'search', true);
$sidebar->addWidget($searchWidget); $sidebar->addWidget($searchWidget);
...@@ -45,7 +45,7 @@ class PresentingController extends PluginController { ...@@ -45,7 +45,7 @@ class PresentingController extends PluginController {
$tagWidget = new LinkCloudWidget(); $tagWidget = new LinkCloudWidget();
$tagWidget->setTitle(_("Beliebte Tags")); $tagWidget->setTitle(_("Beliebte Tags"));
foreach ($this->tags as $tag) { 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); $sidebar->addWidget($tagWidget);
...@@ -101,7 +101,7 @@ class PresentingController extends PluginController { ...@@ -101,7 +101,7 @@ class PresentingController extends PluginController {
} }
public function details_action($plugin_id) { 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); $this->marketplugin = new MarketPlugin($plugin_id);
if (Request::isPost() && Request::submitted("delete_plugin") && $this->marketplugin->isRootable()) { if (Request::isPost() && Request::submitted("delete_plugin") && $this->marketplugin->isRootable()) {
$this->marketplugin->delete(); $this->marketplugin->delete();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment