From 1f84e5991f4901afa4c54dd81505709cb93f5726 Mon Sep 17 00:00:00 2001 From: gabrieljenik Date: Fri, 19 Dec 2014 12:20:55 -0300 Subject: [PATCH] Fixed issue #9418: Plugin Settings | The class name is being showed, instead of name of the plugin. --- application/views/plugins/configure.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/application/views/plugins/configure.php b/application/views/plugins/configure.php index f301e726d63..4d2d13a91f5 100644 --- a/application/views/plugins/configure.php +++ b/application/views/plugins/configure.php @@ -1,8 +1,11 @@ widget('ext.SettingsWidget.SettingsWidget', array( + $title = isset($properties['pluginName']) ? sprintf(gT("Settings for plugin: %s"), $properties['pluginName']) : null; + if (is_null($title)) $title = isset($plugin['name']) ? sprintf(gT("Settings for plugin %s"), $plugin['name']) : null; + + $this->widget('ext.SettingsWidget.SettingsWidget', array( 'settings' => $settings, - 'title' => isset($plugin['name']) ? sprintf(gT("Settings for plugin %s"), $plugin['name']) : null, + 'title' => $title, 'formHtmlOptions' => array( 'id' => "pluginsettings-{$plugin['name']}", ), @@ -15,4 +18,4 @@ ) ) )); -?> \ No newline at end of file +?>