Skip to content

Commit

Permalink
Admin-ui: Throw error if $pluginName does not match an installed plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMer0n committed Mar 7, 2018
1 parent 7864d12 commit 0aab273
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions e107_handlers/admin_ui.php
Original file line number Diff line number Diff line change
Expand Up @@ -6080,6 +6080,13 @@ protected function _setConfig()
{
$this->_pref = $this->pluginName === 'core' ? e107::getConfig() : e107::getPlugConfig($this->pluginName);

if($this->pluginName !== 'core' && !e107::isInstalled($this->pluginName))
{
$obj = get_class($this);
e107::getMessage()->addError($obj." \$pluginName: is not valid. (".$this->pluginName. ")"); // debug only.
return $this;
}

$dataFields = $validateRules = array();
foreach ($this->prefs as $key => $att)
{
Expand Down

0 comments on commit 0aab273

Please sign in to comment.