From: Steffen Kamper Date: Sun, 6 Feb 2011 17:21:34 +0000 (+0000) Subject: Fixed bug #17464: ExtDirectCode is added twice X-Git-Tag: TYPO3_4-6-0alpha1~283 X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff_plain/5f739d9d1644f0376a7143f0eb8c523158a246c7?hp=c0fa5793f65c0054901273836bfa85c1f895bc67 Fixed bug #17464: ExtDirectCode is added twice git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10402 709f56b5-9817-0410-a4d7-c38de5d9e867 --- diff --git a/ChangeLog b/ChangeLog index 3c35a944b13e..9fe0075511fd 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2011-02-06 Steffen Kamper + + * Fixed bug #17464: ExtDirectCode is added twice + 2011-02-05 Steffen Kamper * Fixed bug #17413: ExtJs Theme - use grey folder items for tree by default diff --git a/t3lib/class.t3lib_pagerenderer.php b/t3lib/class.t3lib_pagerenderer.php index feb774cd79ad..28bf3b63fa6f 100644 --- a/t3lib/class.t3lib_pagerenderer.php +++ b/t3lib/class.t3lib_pagerenderer.php @@ -111,7 +111,7 @@ class t3lib_PageRenderer implements t3lib_Singleton { protected $addExtJS = FALSE; protected $addExtCore = FALSE; protected $extJSadapter = 'ext/ext-base.js'; - + protected $extDirectCodeAdded = FALSE; protected $enableExtJsDebug = FALSE; protected $enableExtCoreDebug = FALSE; @@ -139,7 +139,6 @@ class t3lib_PageRenderer implements t3lib_Singleton { protected $addSvg = FALSE; protected $enableSvgDebug = FALSE; - // used by BE modules public $backPath; @@ -945,6 +944,10 @@ class t3lib_PageRenderer implements t3lib_Singleton { * @return void */ public function addExtDirectCode() { + if ($this->extDirectCodeAdded) { + return; + } + $this->extDirectCodeAdded = TRUE; $token = ''; if (TYPO3_MODE === 'BE') { $formprotection = t3lib_formprotection_Factory::get();