set up show_helptext as a user preference; add name field

This commit is contained in:
Michael Erdely 2024-10-09 09:32:36 -04:00
parent a55db3c545
commit 582c53a5fd
13 changed files with 210 additions and 106 deletions

View file

@ -19,11 +19,12 @@ class MySmarty extends Smarty {
$opt["pdo_password"]);
}
public function opt() {
public function opt($session = NULL) {
static $opt;
if (!isset($opt)) {
$opt = getGlobalOptions();
}
$opt['show_helptext'] = isset($_SESSION['show_helptext']) ? $_SESSION['show_helptext'] : $opt['show_helptext'];
return $opt;
}