Skip to content

Commit

Permalink
Fixed issue #9418: Plugin Settings | The class name is being showed,…
Browse files Browse the repository at this point in the history
… instead of name of the plugin.
  • Loading branch information
gabrieljenik committed Dec 19, 2014
1 parent ddb022b commit 81dfa51
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions application/controllers/PluginsController.php
Expand Up @@ -98,15 +98,19 @@ public function actionConfigure($id)
}
}

// Prepare settings to be send to the view.
$aSettings = $oPluginObject->getPluginSettings();

if (empty($aSettings))
{
// And show a message
Yii::app()->user->setFlash('pluginmanager', 'This plugin has no settings');
$this->forward('plugins/index', true);
}
$this->render('/plugins/configure', array('settings' => $aSettings, 'plugin' => $arPlugin));

// Send to view plugin porperties: name and description
$aPluginProp = App()->getPluginManager()->getPluginInfo($arPlugin['name']);

$this->render('/plugins/configure', array('settings' => $aSettings, 'plugin' => $arPlugin, 'properties' => $aPluginProp));
}

public function actionDeactivate($id)
Expand Down

0 comments on commit 81dfa51

Please sign in to comment.