diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2009-05-18 17:34:22 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2009-05-18 17:34:22 +0000 |
commit | d84e62dba716114b799a618cbfd2b14ec61ed1f9 (patch) | |
tree | 1dc58dc8636fd369d3862cb0048004fab19f2233 /lib/class/update.class.php | |
parent | 5bd82180f5470c4ce255d02b7aa36c476db1cd99 (diff) | |
download | ampache-d84e62dba716114b799a618cbfd2b14ec61ed1f9.tar.gz ampache-d84e62dba716114b799a618cbfd2b14ec61ed1f9.tar.bz2 ampache-d84e62dba716114b799a618cbfd2b14ec61ed1f9.zip |
api fixes, added librefm scrobbler (untested) and fixed minor error in header file with rtl vs ltr languages also removed dead RioPlayer plugin
Diffstat (limited to 'lib/class/update.class.php')
-rw-r--r-- | lib/class/update.class.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/class/update.class.php b/lib/class/update.class.php index 57283f56..5a36b253 100644 --- a/lib/class/update.class.php +++ b/lib/class/update.class.php @@ -1762,7 +1762,23 @@ class Update { */ public static function update_360001() { + // Remove any RIO related information from the database as the plugin has been removed + $sql = "DELETE FROM `update_info` WHERE `key` LIKE 'Plugin_Ri%'"; + $db_results = Dba::write($sql); + + $sql = "DELETE FROM `preference` WHERE `name` LIKE 'rio_%'"; + $db_results = Dba::write($sql); + + $sql = "SELECT `id` FROM `user`"; + $db_results = Dba::query($sql); + + User::fix_preferences('-1'); + + while ($r = Dba::fetch_assoc($db_results)) { + User::fix_preferences($r['id']); + } // while we're fixing the useres stuff + // self::set_version('db_version','360001'); } // update_360001 |