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:
Yuchen Wang 2011-11-16 16:12:58 -05:00
parent 4820bb617b
commit 1fd29def27
2 changed files with 38 additions and 38 deletions

View file

@ -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;
}
/**