From 4c7a6092c17e07aafe6ddda6efe4b70ac9956512 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+github@gmail.com> Date: Tue, 21 Jun 2016 09:18:43 +0200 Subject: [PATCH] display plugin name in title, fixes #64 --- controllers/presenting.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controllers/presenting.php b/controllers/presenting.php index 720b373..f69dc69 100755 --- a/controllers/presenting.php +++ b/controllers/presenting.php @@ -161,9 +161,11 @@ class PresentingController extends MarketController } public function details_action($plugin_id) { - Navigation::addItem('/pluginmarket/presenting/details', new AutoNavigation(_('Details'), $this->url_for('presenting/details/'.$plugin_id))); $this->marketplugin = new MarketPlugin($plugin_id); + Navigation::addItem('/pluginmarket/presenting/details', new AutoNavigation(_('Details'), $this->url_for('presenting/details/'.$plugin_id))); + PageLayout::setTitle($this->marketplugin->name . ' - ' . $this->plugin->getDisplayTitle()); + if (Request::isPost() && Request::submitted("delete_plugin") && $this->marketplugin->isRootable()) { $this->marketplugin->delete(); PageLayout::postMessage(MessageBox::success(_("Plugin wurde gel�scht."))); -- GitLab