From d84e62dba716114b799a618cbfd2b14ec61ed1f9 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Mon, 18 May 2009 17:34:22 +0000 Subject: api fixes, added librefm scrobbler (untested) and fixed minor error in header file with rtl vs ltr languages also removed dead RioPlayer plugin --- lib/class/update.class.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'lib/class/update.class.php') 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 -- cgit