Indentation fixes
This commit is contained in:
parent
09dfff854f
commit
33e1b8f4f4
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ function cachePrefValues($data_dir, $username) {
|
||||||
|
|
||||||
sqgetGlobalVar('prefs_are_cached', $prefs_are_cached, SQ_SESSION );
|
sqgetGlobalVar('prefs_are_cached', $prefs_are_cached, SQ_SESSION );
|
||||||
if ( isset($prefs_are_cached) && $prefs_are_cached) {
|
if ( isset($prefs_are_cached) && $prefs_are_cached) {
|
||||||
sqgetGlobalVar('prefs_cache', $prefs_cache, SQ_SESSION );
|
sqgetGlobalVar('prefs_cache', $prefs_cache, SQ_SESSION );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ function getPref($data_dir, $username, $string, $default = '') {
|
||||||
if (!$result) {
|
if (!$result) {
|
||||||
cachePrefValues($data_dir, $username);
|
cachePrefValues($data_dir, $username);
|
||||||
if (isset($prefs_cache[$string])) {
|
if (isset($prefs_cache[$string])) {
|
||||||
$result = $prefs_cache[$string];
|
$result = $prefs_cache[$string];
|
||||||
} else {
|
} else {
|
||||||
$result = do_hook_function('get_pref', array($username,$string));
|
$result = do_hook_function('get_pref', array($username,$string));
|
||||||
if (!$result) {
|
if (!$result) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue