Yesterdays fix in t3lib/jsfunc.menu.js was not fully correct. Fixed that.
authorBernhard Kraft <kraftb@think-open.at>
Thu, 20 Oct 2005 13:09:47 +0000 (13:09 +0000)
committerBernhard Kraft <kraftb@think-open.at>
Thu, 20 Oct 2005 13:09:47 +0000 (13:09 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@825 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/jsfunc.menu.js

index c440b14..aaeac6c 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,10 +1,6 @@
 2005-10-19  Bernhard Kraft  <kraftb@kraftb.at>
 
- * Fixed a bug in t3lib/jsfunc.menu.js (base URL was also prepended when link
- is already absolute)
-
-2005-10-19  Bernhard Kraft  <kraftb@kraftb.at>
-
+ * Fixed a bug in t3lib/jsfunc.menu.js (base URL was also prepended when link is already absolute)
  * Fixed bug #200: fe_adminLib: hard-coded Form URL, should be typolink
 
 2005-10-17  Kasper Skårhøj  <kasper2005@typo3.com>
index 7f6bce0..9ea70fe 100755 (executable)
@@ -108,8 +108,8 @@ function JSactivate(level) {
                        this.entry[this.entry[entryID].parent].openID = entryID;
                }
                if (this.entry[entryID].url)    {
-                       if (document.getElementsByTagName("base")[0].href != "") {
-                               if (this.entry[entryID].url.substr(0,7)!="http://")     {
+                       if (document.getElementsByTagName("base").size && document.getElementsByTagName("base")[0].href != "") {
+                               if (this.entry[entryID].url.substr(0,7) != "http://")   {
                                        this.entry[entryID].url = document.getElementsByTagName("base")[0].href + this.entry[entryID].url;
                                }
                        }