1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 04:32:01 +02:00

Admin-ui: Throw error if $pluginName does not match an installed plugin.

This commit is contained in:
Cameron 2018-03-07 11:41:59 -08:00
parent 7864d129b0
commit 0aab273723

View File

@ -6080,6 +6080,13 @@ class e_admin_ui extends e_admin_controller_ui
{
$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)
{