From a1f08342c8b8502197159a9fd78e48e6cead4ea0 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 31 Jul 2010 19:22:47 +0000 Subject: improved the upgrade system and moved albums to use an ordered list for images --- actions/upgrade.php | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 actions/upgrade.php (limited to 'actions/upgrade.php') diff --git a/actions/upgrade.php b/actions/upgrade.php deleted file mode 100644 index 596b90a22..000000000 --- a/actions/upgrade.php +++ /dev/null @@ -1,39 +0,0 @@ -dbprefix . 'entity_subtypes'; - $result = update_data("UPDATE {$table} set class='TidypicsImage' where id={$id}"); - if (!result) { - register_error(elgg_echo('tidypics:upgrade:failed')); - forward($_SERVER['HTTP_REFERER']); - } -} - -// add album class -$id = get_subtype_id("object", "album"); -if ($id != 0) { - $table = $CONFIG->dbprefix . 'entity_subtypes'; - $result = update_data("UPDATE {$table} set class='TidypicsAlbum' where id={$id}"); - if (!result) { - register_error(elgg_echo('tidypics:upgrade:failed')); - forward($_SERVER['HTTP_REFERER']); - } -} - -system_message(elgg_echo('tidypics:upgrade:success')); - -forward($_SERVER['HTTP_REFERER']); -- cgit v1.2.3