From f5e8d5e9be7873132fbfddf74ef8ff68f01fccae Mon Sep 17 00:00:00 2001 From: cash Date: Mon, 2 Jan 2012 17:01:18 -0500 Subject: updated the upgrade system --- actions/photos/admin/upgrade.php | 50 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 actions/photos/admin/upgrade.php (limited to 'actions/photos/admin/upgrade.php') diff --git a/actions/photos/admin/upgrade.php b/actions/photos/admin/upgrade.php new file mode 100644 index 000000000..c9ae1da48 --- /dev/null +++ b/actions/photos/admin/upgrade.php @@ -0,0 +1,50 @@ + $local_version) { + $upgrades[] = "$base_dir/$updatefile"; + } + } + } + } + + // Sort and execute + asort($upgrades); + + if (sizeof($upgrades) > 0) { + foreach ($upgrades as $upgrade) { + include($upgrade); + } + } +} + +elgg_set_plugin_setting('version', $version, 'tidypics'); + +system_message("Tidypics has been upgraded"); +forward(REFERER); -- cgit v1.2.3