diff options
author | martian <martian@ampache> | 2010-02-09 17:44:44 +0000 |
---|---|---|
committer | martian <martian@ampache> | 2010-02-09 17:44:44 +0000 |
commit | 1b35c20dd0a93b143d8b9542743a743e0db66386 (patch) | |
tree | 0500ae3eec1dfb70b66c3ca30e9a61da2c0daba8 /lib/class/update.class.php | |
parent | 5e52f0d7ccb6183d7e1b4e5033adad0d08a48eb6 (diff) | |
download | ampache-1b35c20dd0a93b143d8b9542743a743e0db66386.tar.gz ampache-1b35c20dd0a93b143d8b9542743a743e0db66386.tar.bz2 ampache-1b35c20dd0a93b143d8b9542743a743e0db66386.zip |
Adding the bandwidth option to the preferences. This changes the complexity of the UI and toggles album art.
Diffstat (limited to 'lib/class/update.class.php')
-rw-r--r-- | lib/class/update.class.php | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/lib/class/update.class.php b/lib/class/update.class.php index 106c3480..bda724a4 100644 --- a/lib/class/update.class.php +++ b/lib/class/update.class.php @@ -1828,12 +1828,21 @@ class Update { $sql = "ALTER TABLE `live_stream` CHANGE `url` `url` VARCHAR ( 4096 )"; $db_results = Dba::write($sql); + + // Now add in the min_object_count preference and the random_method + $sql = "INSERT INTO `preferences` (`name`,`value`,`description`,`level`,`type`,`catagory`) " . + "VALUES('bandwidth','1','Bandwidth','100','integer','interface')"; + $db_results = Dba::write($sql); + + /* Fix every users preferences */ + $sql = "SELECT `id` FROM `user`"; + $db_results = Dba::read($sql); - User::fix_preferences('-1'); + User::fix_preferences('-1'); - while ($r = Dba::fetch_assoc($db_results)) { - User::fix_preferences($r['id']); - } // while we're fixing the useres stuff + while ($r = Dba::fetch_assoc($db_results)) { + User::fix_preferences($r['id']); + } // while results } // update_360002 |