Index: trunk/core/kernel/application.php =================================================================== diff -u -r4971 -r5002 --- trunk/core/kernel/application.php (.../application.php) (revision 4971) +++ trunk/core/kernel/application.php (.../application.php) (revision 5002) @@ -612,6 +612,11 @@ $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); + } } if (!$this->RequestProcessed) $this->ProcessRequest();