removed an unneccesary function_exists() call as the function in question is availabl...
authorIngo Renner <ingo.renner@typo3.org>
Wed, 3 Dec 2008 17:21:08 +0000 (17:21 +0000)
committerIngo Renner <ingo.renner@typo3.org>
Wed, 3 Dec 2008 17:21:08 +0000 (17:21 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4534 709f56b5-9817-0410-a4d7-c38de5d9e867

typo3/sysext/cms/tslib/class.tslib_fe.php

index c6c3544..da8765b 100755 (executable)
@@ -4076,11 +4076,11 @@ if (version == "n3") {
        function prefixLocalAnchorsWithScript() {
                $scriptPath = substr(t3lib_div::getIndpEnv('TYPO3_REQUEST_URL'),strlen(t3lib_div::getIndpEnv('TYPO3_SITE_URL')));
                $originalContent = $this->content;
-               $this->content = preg_replace('/(<(?:a|area).*?href=")(#[^"]*")/i', '${1}' . htmlspecialchars($scriptPath) . '${2}', $originalContent);         
+               $this->content = preg_replace('/(<(?:a|area).*?href=")(#[^"]*")/i', '${1}' . htmlspecialchars($scriptPath) . '${2}', $originalContent);
                        // There was an error in the call to preg_replace, so keep the original content (behavior prior to PHP 5.2)
-               if (function_exists('preg_last_error') && preg_last_error() > 0) {
+               if (preg_last_error() > 0) {
                        t3lib_div::sysLog('preg_replace returned error-code: ' . preg_last_error().' in function prefixLocalAnchorsWithScript. Replacement not done!' , 'cms', 4);
-                       $this->content = $originalContent;      
+                       $this->content = $originalContent;
                }
        }