[TASK] Change hardcoded URL to constant
authordkd-egerer Sascha Egerer <sascha@sascha-egerer.de>
Sat, 14 Apr 2012 14:56:30 +0000 (16:56 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 14 Apr 2012 15:18:16 +0000 (17:18 +0200)
Change hardcoded typo3.org url to the
constant TYPO3_URL_GENERAL in class.typo3logo.php

Change-Id: I6a3067f589ae84ae2ef61d3be8ff7a7d64d1eb76
Resolves: #34742
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/10472
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/classes/class.typo3logo.php

index 171c7a5..0483e98 100644 (file)
@@ -61,14 +61,14 @@ class TYPO3Logo {
                $imgInfo = getimagesize(PATH_site . TYPO3_mainDir . $logoFile);
 
 
-               $logo = '<a href="http://www.typo3.org/" target="_blank">' .
+               $logo = '<a href="' . TYPO3_URL_GENERAL . '" target="_blank">' .
                                '<img' . t3lib_iconWorks::skinImg('', $logoFile, $imgInfo[3]) . ' title="TYPO3 Content Management System" alt="" />' .
                                '</a>';
 
                        // overwrite with custom logo
                if($GLOBALS['TBE_STYLES']['logo'])      {
                        $imgInfo = @getimagesize(t3lib_div::resolveBackPath(PATH_typo3 . $GLOBALS['TBE_STYLES']['logo'], 3));
-                       $logo = '<a href="http://www.typo3.org/" target="_blank">' .
+                       $logo = '<a href="' . TYPO3_URL_GENERAL . '" target="_blank">' .
                                '<img src="' . $GLOBALS['TBE_STYLES']['logo'] . '" ' . $imgInfo[3] . ' title="TYPO3 Content Management System" alt="" />' .
                                '</a>';
                }