Index: trunk/core/kernel/application.php =================================================================== diff -u -N -r5027 -r5340 --- trunk/core/kernel/application.php (.../application.php) (revision 5027) +++ trunk/core/kernel/application.php (.../application.php) (revision 5340) @@ -612,7 +612,7 @@ $this->LinkVar('return_template'); // template to go, when something was coosen from popup (from finalizePopup) $this->LinkVar('return_m'); // main env part to restore after popup will be closed (from finalizePopup) } - + if ($this->GetVar('ajax') == 'yes') { // hide debug output from ajax requests automatically define('DBG_SKIP_REPORTING', 1); @@ -1032,6 +1032,7 @@ $no_rewrite = true; unset($params['__NO_REWRITE__']); } + if ($this->RewriteURLs($ssl) && !$no_rewrite) { $session =& $this->recallObject('Session'); @@ -1122,6 +1123,7 @@ $ret = $this->BuildModuleEnv_NEW('m', $params, $pass_events).$ret; $ret = trim($ret, '/').'.html'; +// $ret = trim($ret, '/').'/'; if($env) $params[ENV_VAR_NAME] = ltrim($env, ':'); } @@ -1320,10 +1322,10 @@ // redirects to the same template as current $params['ajax'] = 'yes'; } - + $params['__URLENCODE__'] = 1; $location = $this->HREF($t, $prefix, $params, $index_file); - + $a_location = $location; $location = "Location: $location"; //echo " location : $location
"; @@ -2052,6 +2054,12 @@ } } + function TimeZoneAdjustment($time_zone=null) + { + $target_zone = isset($time_zone) ? $time_zone : $this->ConfigValue('Config_Site_Time'); + return 3600 * ($target_zone - $this->ConfigValue('Config_Server_Time')); + } + } ?> \ No newline at end of file