1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 21:57:51 +02:00

declaration at the top of method

This commit is contained in:
lonalore
2015-03-24 12:29:26 +01:00
parent d48d0f7400
commit d43d375759

View File

@@ -1369,6 +1369,7 @@ class e107plugin
$pref = e107::getPref();
$sql = e107::getDb();
$mes = e107::getMessage();
$event = e107::getEvent();
$error = array(); // Array of error messages
$canContinue = TRUE; // Clear flag if must abort part way through
@@ -1634,25 +1635,21 @@ class e107plugin
if ($function == 'install')
{
$event = e107::getEvent();
$event->trigger('admin_plugin_install', $plug);
}
if ($function == 'uninstall')
{
$event = e107::getEvent();
$event->trigger('admin_plugin_uninstall', $plug);
}
if ($function == 'upgrade')
{
$event = e107::getEvent();
$event->trigger('admin_plugin_upgrade', $plug);
}
if ($function == 'refresh')
{
$event = e107::getEvent();
$event->trigger('admin_plugin_refresh', $plug);
}