Fixed bug #17464: ExtDirectCode is added twice
authorSteffen Kamper <info@sk-typo3.de>
Sun, 6 Feb 2011 17:21:21 +0000 (17:21 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Sun, 6 Feb 2011 17:21:21 +0000 (17:21 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-5@10401 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_pagerenderer.php

index cfdc9e4..af04f84 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-02-06  Steffen Kamper  <steffen@typo3.org>
+
+       * Fixed bug #17464: ExtDirectCode is added twice
+
 2011-02-06  Steffen Gebert  <steffen@steffen-gebert.de>
 
        * Fixed bug #12998: Icons for Word documents missing (Thanks to Tobias Schäfer)
index feb774c..28bf3b6 100644 (file)
@@ -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();