Skip to content

Commit

Permalink
Merge pull request #1544 from BioKIC/Development
Browse files Browse the repository at this point in the history
fixed the profile accessibility setting (#1534)
  • Loading branch information
egbot committed Jul 29, 2024
2 parents 857ee8d + 71852b2 commit c80e58d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion classes/ProfileManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ public function getAccessibilityPreference($uid){
$dynPropArr = $this->getDynamicProperties($uid);

if($dynPropArr && isset($dynPropArr['accessibilityPref'])){
$returnVal = ($dynPropArr['accessibilityPref'] === '1') ? true : false;
$returnVal = ($dynPropArr['accessibilityPref'] === true) ? true : false;
}
return $returnVal;
}
Expand Down
8 changes: 0 additions & 8 deletions config/symbbase.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,8 @@
//Set accessibilty variables
$ACCESSIBILITY_ACTIVE = false;
$isAccessiblePreferred = $pHandler->getAccessibilityPreference($SYMB_UID);
// $_SESSION['active_stylesheet'] = null; // use this if you want to troubleshoot the behavior of just the persisted preference
$localSession = isset($_SESSION['active_stylesheet']) ? $_SESSION['active_stylesheet'] : null;
if($isAccessiblePreferred){
if(!isset($localSession) || !strpos($localSession, 'condensed.css')){
$ACCESSIBILITY_ACTIVE = true;
}
} else{
if(isset($localSession) && strpos($localSession, 'accessibility-compliant.css')){
$ACCESSIBILITY_ACTIVE = true;
}
}

//$AVAILABLE_LANGS = array('en','es','fr','pt','ab','aa','af','sq','am','ar','hy','as','ay','az','ba','eu','bn','dz','bh','bi','br','bg','my','be','km','ca','zh','co','hr','cs','da','nl','eo','et','fo','fj','fi','fy','gd','gl','ka','de','el','kl','gn','gu','ha','iw','hi','hu','is','in','ia','ie','ik','ga','it','ja','jw','kn','ks','kk','rw','ky','rn','ko','ku','lo','la','lv','ln','lt','mk','mg','ms','ml','mt','mi','mr','mo','mn','na','ne','no','oc','or','om','ps','fa','pl','pa','qu','rm','ro','ru','sm','sg','sa','sr','sh','st','tn','sn','sd','si','ss','sk','sl','so','su','sw','sv','tl','tg','ta','tt','te','th','bo','ti','to','ts','tr','tk','tw','uk','ur','uz','vi','vo','cy','wo','xh','ji','yo','zu');
Expand Down

0 comments on commit c80e58d

Please sign in to comment.