set up show_helptext as a user preference; add name field
This commit is contained in:
parent
a55db3c545
commit
582c53a5fd
13 changed files with 210 additions and 106 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue