From ab7c33b3a5d5724d82d6ed54f9659c474ce9ce6f Mon Sep 17 00:00:00 2001 From: Georg Ringer Date: Fri, 29 Mar 2013 08:48:34 +0100 Subject: [PATCH] [TASK] Reduce severity for set_no_cache() from core Reduce the severity if an internal flag is set and the a backend user is logged in. Resolves: #43735 Related: #43506 Releases: 6.1, 6.0, 4.7, 4.5 Change-Id: Ifd78f67d38b87180ab60df05167974705ee90352 Reviewed-on: https://review.typo3.org/17020 Reviewed-by: Stefan Neufeind Reviewed-by: Markus Klein Reviewed-by: Jigal van Hemert Tested-by: Jigal van Hemert --- Classes/FrontendEditPanel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/FrontendEditPanel.php b/Classes/FrontendEditPanel.php index 81a292a..f94c2f8 100644 --- a/Classes/FrontendEditPanel.php +++ b/Classes/FrontendEditPanel.php @@ -70,7 +70,7 @@ class FrontendEditPanel { */ public function editPanel($content, array $conf, $currentRecord = '', array $dataArr = array(), $table = '', $allow = '', $newUID = 0, array $hiddenFields = array()) { // Special content is about to be shown, so the cache must be disabled. - $GLOBALS['TSFE']->set_no_cache('Frontend edit panel is shown'); + $GLOBALS['TSFE']->set_no_cache('Frontend edit panel is shown', TRUE); $formName = 'TSFE_EDIT_FORM_' . substr($GLOBALS['TSFE']->uniqueHash(), 0, 4); $formTag = '
'; $sortField = $GLOBALS['TCA'][$table]['ctrl']['sortby']; @@ -186,7 +186,7 @@ class FrontendEditPanel { */ public function editIcons($content, $params, array $conf = array(), $currentRecord = '', array $dataArr = array(), $addUrlParamStr = '', $table, $editUid, $fieldList) { // Special content is about to be shown, so the cache must be disabled. - $GLOBALS['TSFE']->set_no_cache('Display frontend edit icons'); + $GLOBALS['TSFE']->set_no_cache('Display frontend edit icons', TRUE); $style = $conf['styleAttribute'] ? ' style="' . htmlspecialchars($conf['styleAttribute']) . '"' : ''; $iconTitle = $this->cObj->stdWrap($conf['iconTitle'], $conf['iconTitle.']); $iconImg = $conf['iconImg'] ? $conf['iconImg'] : '';