var $spoolroot;
var $locale;
+ var $timezone;
function PlatalGlobals($sess)
{
foreach ($array as $cat => $conf) {
$c = strtolower($cat);
foreach ($conf as $k => $v) {
- if ($c == 'core' && isset($this->$k)) {
+ if ($c == 'core' && property_exists($this, $k)) {
$this->$k=$v;
} else {
if (!isset($this->$c)) {
setlocale(LC_MESSAGES, $this->locale);
setlocale(LC_TIME, $this->locale);
setlocale(LC_CTYPE, $this->locale);
+ date_default_timezone_set($this->timezone);
}
function asso($key=null)