From 6e8fa4a003efb3391f1cea0e0989c15d73be3a94 Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 3 Aug 2018 12:22:17 -0700 Subject: [PATCH] Code cleanup --- e107_handlers/plugin_class.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/e107_handlers/plugin_class.php b/e107_handlers/plugin_class.php index 788564663..d3c2adc20 100644 --- a/e107_handlers/plugin_class.php +++ b/e107_handlers/plugin_class.php @@ -2288,6 +2288,8 @@ class e107plugin else { */ + $pref = e107::getPref(); + $prefvals[] = $varArray; // $prefvals[] = $plugin_folder; // } @@ -2416,9 +2418,12 @@ class e107plugin $install_notify = $e_notify ? TRUE : FALSE; } } + + $config_events = array(); // Notice removal if (vartrue($install_notify)) { $notify_prefs->setPref('plugins/'.$eplug_folder, 1); //$notify_prefs['plugins'][$eplug_folder] = TRUE; + require_once(e_PLUGIN.$eplug_folder.'/e_notify.php'); foreach ($config_events as $event_id => $event_text) { @@ -2780,22 +2785,22 @@ class e107plugin } - if ($function == 'install') + if($function === 'install') { $event->trigger('admin_plugin_install', $plug); } - if ($function == 'uninstall') + if($function === 'uninstall') { $event->trigger('admin_plugin_uninstall', $plug); } - if ($function == 'upgrade') + if($function === 'upgrade') { $event->trigger('admin_plugin_upgrade', $plug); } - if ($function == 'refresh') + if($function === 'refresh') { $event->trigger('admin_plugin_refresh', $plug); }