Index: trunk/core/kernel/session/session.php
===================================================================
diff -u -r4880 -r5013
--- trunk/core/kernel/session/session.php (.../session.php) (revision 4880)
+++ trunk/core/kernel/session/session.php (.../session.php) (revision 5013)
@@ -679,7 +679,7 @@
function SaveData()
{
- if (!$this->Application->GetVar('skip_last_template')) {
+ if (!$this->Application->GetVar('skip_last_template') && $this->Application->GetVar('ajax') != 'yes') {
$t = $this->Application->GetVar('t');
$last_env = $this->Application->BuildEnv($t, Array('m_opener' => 'u', '__URLENCODE__' => 1), 'all');
$last_template = basename($_SERVER['PHP_SELF']).'|';
Index: trunk/kernel/units/general/helpers/permissions_helper.php
===================================================================
diff -u -r5005 -r5013
--- trunk/kernel/units/general/helpers/permissions_helper.php (.../permissions_helper.php) (revision 5005)
+++ trunk/kernel/units/general/helpers/permissions_helper.php (.../permissions_helper.php) (revision 5013)
@@ -210,7 +210,7 @@
function showDebug($text, $params)
{
- $is_ajax = isset($params['ajax']) && $params['ajax'];
+ $is_ajax = isset($params['ajax']) || isset($params['tab_init']);
if (!$this->Application->isDebugMode() || $is_ajax) return true;
echo $text.'
';
}
Index: trunk/core/units/general/helpers/permissions_helper.php
===================================================================
diff -u -r5005 -r5013
--- trunk/core/units/general/helpers/permissions_helper.php (.../permissions_helper.php) (revision 5005)
+++ trunk/core/units/general/helpers/permissions_helper.php (.../permissions_helper.php) (revision 5013)
@@ -210,7 +210,7 @@
function showDebug($text, $params)
{
- $is_ajax = isset($params['ajax']) && $params['ajax'];
+ $is_ajax = isset($params['ajax']) || isset($params['tab_init']);
if (!$this->Application->isDebugMode() || $is_ajax) return true;
echo $text.'
';
}