aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/version.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/version.php')
-rw-r--r--engine/lib/version.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/engine/lib/version.php b/engine/lib/version.php
index d8cbb3185..b34ac7dcc 100644
--- a/engine/lib/version.php
+++ b/engine/lib/version.php
@@ -111,8 +111,15 @@
// Upgrade core
if (upgrade_code($dbversion))
- system_message(elgg_echo('upgrade:core'));
+ system_message(elgg_echo('upgrade:core'));
+
+ // Now we trigger an event to give the option for plugins to do something
+ $upgrade_details = stdClass;
+ $upgrade_details->from = $dbversion;
+ $upgrade_details->to = get_version();
+ trigger_elgg_event('upgrade', 'upgrade', $upgrade_details);
+
// Update the version
datalist_set('version', get_version());