Fixed bug #9755: Incorrect initialization sequence in class browse_links
authorStanislas Rolland <typo3@sjbr.ca>
Wed, 12 Nov 2008 08:37:37 +0000 (08:37 +0000)
committerStanislas Rolland <typo3@sjbr.ca>
Wed, 12 Nov 2008 08:37:37 +0000 (08:37 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-2@4453 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/class.browse_links.php

index e955127..d7259a3 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-11-12  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Fixed bug #9755: Incorrect initialization sequence in class browse_links
+
 2008-11-11  Ingo Renner  <ingo@typo3.org>
 
        * Release of TYPO3 4.2.3
index 9fd0f53..ff84b9d 100755 (executable)
@@ -788,6 +788,14 @@ class browse_links {
                        $this->mode = 'rte';
                }
 
+                       // Creating backend template object:
+               $this->doc = t3lib_div::makeInstance('template');
+               $this->doc->docType= 'xhtml_trans';
+               $this->doc->backPath = $BACK_PATH;
+                       // Load the Prototype library and browse_links.js
+               $this->doc->loadJavascriptLib('contrib/prototype/prototype.js');
+               $this->doc->loadJavascriptLib('js/browse_links.js');
+
                        // init hook objects:
                $this->hookObjects = array();
                if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/class.browse_links.php']['browseLinksHook'])) {
@@ -885,15 +893,6 @@ class browse_links {
                        // Initializing the title value (RTE)
                $this->setTitle = ($this->curUrlArray['title'] != '-') ? $this->curUrlArray['title'] : '';
 
-                       // Creating backend template object:
-               $this->doc = t3lib_div::makeInstance('template');
-               $this->doc->docType= 'xhtml_trans';
-               $this->doc->backPath = $BACK_PATH;
-
-                       // Load the Prototype library and browse_links.js
-               $this->doc->loadJavascriptLib('contrib/prototype/prototype.js');
-               $this->doc->loadJavascriptLib('js/browse_links.js');
-
                        // BEGIN accumulation of header JavaScript:
                $JScode = '
                                // This JavaScript is primarily for RTE/Link. jumpToUrl is used in the other cases as well...