/** * Update the pageTS * No return value: sent header to the same page * * @return void */ public function updatePageTS() { if ($GLOBALS["BE_USER"]->doesUserHaveAccess(BackendUtility::getRecord('pages', $this->id), 2)) { $pageTypoScript = GeneralUtility::_GP('pageTS'); if (is_array($pageTypoScript)) { DirectMailUtility::updatePagesTSconfig($this->id, $pageTypoScript, $this->TSconfPrefix); header('Location: ' . GeneralUtility::locationHeaderUrl(GeneralUtility::getIndpEnv('REQUEST_URI'))); } } }