Commit 5eb78cfb authored by Carsten  Rose's avatar Carsten Rose
Browse files

Bug #4508 / Form: during Save with FE with 'report'-Note/Values an exception...

Bug #4508 / Form: during Save with FE with 'report'-Note/Values an exception is thrown - report does not expect it would be called without typo3 - but this is the case during save and generating the JSON.
parent bd17edcb
......@@ -138,11 +138,12 @@ class Variables {
}
$arr["be_user_uid"] = (isset($GLOBALS['BE_USER'])) ? $GLOBALS['BE_USER']->user["uid"] : '-';
$arr["page_id"] = $GLOBALS["TSFE"]->id;
$arr["page_type"] = $GLOBALS["TSFE"]->type;
$arr["page_language_uid"] = $GLOBALS["TSFE"]->sys_language_uid;
$arr["ttcontent_uid"] = $this->tt_content_uid;
if (isset($GLOBALS["TSFE"])) {
$arr["page_id"] = $GLOBALS["TSFE"]->id;
$arr["page_type"] = $GLOBALS["TSFE"]->type;
$arr["page_language_uid"] = $GLOBALS["TSFE"]->sys_language_uid;
}
// Add all variables from ext_localconf
// database aliases can be used in form sql queries (e.g. select * from "{{global.t3_name}}".fe_users...)
// localconf can be used to configure an application
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment