aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'start.php')
-rw-r--r--start.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/start.php b/start.php
index 9b7dd3084..431015b24 100644
--- a/start.php
+++ b/start.php
@@ -313,10 +313,8 @@ function videolist_preprocess_url($hook, $type, $returnvalue, $params) {
/**
* Process upgrades for the videolist plugin
*/
-function videolist_run_upgrades() {
- $path = elgg_get_plugins_path() . 'videolist/upgrades/';
- $files = elgg_get_upgrade_files($path);
- foreach ($files as $file) {
- include "$path{$file}";
+function videolist_run_upgrades($event, $type, $details) {
+ if (include_once(elgg_get_plugins_path() . 'upgrade-tools/lib/upgrade_tools.php')) {
+ upgrade_module_run('videolist');
}
}