fixed "Application echoed something", when eT2 request was processed

This commit is contained in:
Ralf Becker 2016-05-05 16:43:39 +00:00
parent 33605585e2
commit 797ff38fa3

View File

@ -112,7 +112,7 @@ abstract class Extra
self::$extra['window-close'] = $alert_msg ? $alert_msg : true;
// are we in ajax_process_content -> just return extra data, with close instructions
if (preg_match('/etemplate(_new)?(::|\.)ajax_process_content/', $_GET['menuaction']))
if (preg_match('/(Etemplate|etemplate_new)(::|\.)ajax_process_content/', $_GET['menuaction']))
{
$response = Json\Response::get();
$response->generic('et2_load', self::get_extra());