Merge branch 'saas-dev' of github.com:sourcefabric/Airtime into saas-dev
This commit is contained in:
commit
6251fd62d5
17 changed files with 199 additions and 257 deletions
|
@ -480,10 +480,6 @@ class Application_Model_Preference
|
|||
|
||||
public static function SetUserTimezone($timezone = null)
|
||||
{
|
||||
// When a new user is created they will get the default timezone
|
||||
// setting which the admin sets on preferences page
|
||||
if (is_null($timezone))
|
||||
$timezone = self::GetDefaultTimezone();
|
||||
self::setValue("user_timezone", $timezone, true);
|
||||
}
|
||||
|
||||
|
@ -523,10 +519,10 @@ class Application_Model_Preference
|
|||
public static function GetUserLocale()
|
||||
{
|
||||
$locale = self::getValue("user_locale", true);
|
||||
if (!$locale) {
|
||||
// empty() checks for null and empty strings - more robust than !val
|
||||
if (empty($locale)) {
|
||||
return self::GetDefaultLocale();
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
return $locale;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue