Fixed bug 5701: linkHandler Hook Not Initialized Properly, patch supplied by Jeff...
authorIngo Renner <ingo.renner@typo3.org>
Mon, 17 Sep 2007 15:08:43 +0000 (15:08 +0000)
committerIngo Renner <ingo.renner@typo3.org>
Mon, 17 Sep 2007 15:08:43 +0000 (15:08 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2509 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_content.php

index 5767ae9..ecefb19 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,11 @@
+2007-09-13  Ingo Renner  <ingo@typo3.org>
+
+       * Fixed bug 5701: linkHandler Hook Not Initialized Properly, patch supplied by Jeff Segars
+
 2007-09-13     Thomas Hempel   <thomas@typo3-unleashed.net>
 
        * Feature #4064: Navigation title in tree view
-       
+
 2007-09-11  Ingo Renner  <ingo@typo3.org>
 
        * added romainian flag, fixes bug 6000
index 5eab7f0..6728bdd 100755 (executable)
@@ -5051,9 +5051,12 @@ class tslib_cObj {
 
                                // Check for link-handler keyword:
                        list($linkHandlerKeyword,$linkHandlerValue) = explode(':',trim($link_paramA[0]),2);
-                       if ($TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content.php']['typolinkLinkHandler'][$linkHandlerKeyword] && strcmp($linkHandlerValue,"")) {
-                               $linkHandlerObj = &t3lib_div::getUserObj($TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content.php']['typolinkLinkHandler'][$linkHandlerKeyword]);
-                               return $linkHandlerObj->main($linktxt, $conf, $linkHandlerKeyword, $linkHandlerValue, $link_param, $this);
+                       if ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['typolinkLinkHandler'][$linkHandlerKeyword] && strcmp($linkHandlerValue, '')) {
+                               $linkHandlerObj = &t3lib_div::getUserObj($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['typolinkLinkHandler'][$linkHandlerKeyword]);
+
+                               if(method_exists($linkHandlerObj, 'main')) {
+                                       return $linkHandlerObj->main($linktxt, $conf, $linkHandlerKeyword, $linkHandlerValue, $link_param, $this);
+                               }
                        }
 
                        $link_param = trim($link_paramA[0]);    // Link parameter value