Skip to content

Commit

Permalink
Merge pull request #265 from gabrieljenik/patch-9
Browse files Browse the repository at this point in the history
Fixed issue #9418: Plugin Settings | The class name is being showed, ins...
  • Loading branch information
c-schmitz committed Dec 19, 2014
2 parents 4b333ae + f4e921c commit d6bdf70
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions application/controllers/PluginsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,19 @@ public function actionConfigure($id)
$this->forward('plugins/index', true);
}

// 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 d6bdf70

Please sign in to comment.