mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-04 10:19:25 +02:00
added paging to the localplay playlist, fixed some preferences issues I introduced with the form register and caching
This commit is contained in:
parent
f3b10721ac
commit
0dbace41fe
6 changed files with 35 additions and 12 deletions
|
@ -66,6 +66,7 @@ class Preference {
|
|||
$sql = "UPDATE `user_preference` SET `value`='$value' " .
|
||||
"WHERE `preference`='$id'$user_check";
|
||||
$db_results = Dba::query($sql);
|
||||
Preference::clear_from_session();
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
|
@ -337,6 +338,17 @@ class Preference {
|
|||
|
||||
} // load_from_session
|
||||
|
||||
/**
|
||||
* clear_from_session
|
||||
* This clears the users preferences, this is done whenever modifications are made to the preferences
|
||||
* or the admin resets something
|
||||
*/
|
||||
public static function clear_from_session() {
|
||||
|
||||
unset($_SESSION['userdata']['preferences']);
|
||||
|
||||
} // clear_from_session
|
||||
|
||||
/**
|
||||
* init
|
||||
* This grabs the preferences and then loads them into conf it should be run on page load
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue