CC-2436: Save pulldown settings
Move the code that updates the database for the "show entries" dropdown to a more appropriate place.
This commit is contained in:
parent
4820bb617b
commit
1fd29def27
2 changed files with 38 additions and 38 deletions
|
@ -574,7 +574,7 @@ class Application_Model_Preference
|
|||
public static function GetCalendarTimeScale() {
|
||||
$val = self::GetValue("calendar_time_scale", true /* user specific */);
|
||||
if(strlen($val) == 0) {
|
||||
$val = 'month';
|
||||
$val = "month";
|
||||
}
|
||||
return $val;
|
||||
}
|
||||
|
@ -590,9 +590,14 @@ class Application_Model_Preference
|
|||
|
||||
/**
|
||||
* Retrieves the number of entries to show preference in library under Playlist Builder.
|
||||
* Defaults to 10 if no entry exists
|
||||
*/
|
||||
public static function GetLibraryNumEntries() {
|
||||
return self::GetValue("library_num_entries", true /* user specific */);
|
||||
$val = self::GetValue("library_num_entries", true /* user specific */);
|
||||
if(strlen($val) == 0) {
|
||||
$val = "10";
|
||||
}
|
||||
return $val;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue