@@ 332-336 (lines=5) @@ | ||
329 | ||
330 | self::$response = Json\Response::get(); |
|
331 | ||
332 | if (!($template = self::instance(self::$request->template['name'], self::$request->template['template_set'], |
|
333 | self::$request->template['version'], self::$request->template['load_via']))) |
|
334 | { |
|
335 | throw new Exception\WrongParameter('Can NOT read template '.array2string(self::$request->template)); |
|
336 | } |
|
337 | ||
338 | // let session class know, which is the app & method of this request |
|
339 | $GLOBALS['egw']->session->set_action('Etemplate: '.self::$request->method); |
|
@@ 460-464 (lines=5) @@ | ||
457 | ||
458 | self::$request = Etemplate\Request::read($_POST['etemplate_exec_id']); |
|
459 | ||
460 | if (!($template = self::instance(self::$request->template['name'], self::$request->template['template_set'], |
|
461 | self::$request->template['version'], self::$request->template['load_via']))) |
|
462 | { |
|
463 | throw new Exception\WrongParameter('Can NOT read template '.array2string(self::$request->template)); |
|
464 | } |
|
465 | $validated = array(); |
|
466 | $expand = array( |
|
467 | 'cont' => &self::$request->content, |