Fixed bug #17699: ExtDirect API use relative url for ajax.php
authorsteffenk <steffenk@709f56b5-9817-0410-a4d7-c38de5d9e867>
Tue, 22 Feb 2011 13:48:09 +0000 (13:48 +0000)
committersteffenk <steffenk@709f56b5-9817-0410-a4d7-c38de5d9e867>
Tue, 22 Feb 2011 13:48:09 +0000 (13:48 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10525 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/extjs/class.t3lib_extjs_extdirectapi.php

index 9c60c03..8eb4279 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-02-22  Steffen Kamper  <steffen@typo3.org
+
+       * Fixed bug #17699: ExtDirect API use relative url for ajax.php
+
 2011-02-22  Xavier Perseguers  <typo3@perseguers.ch>
 
        * Fixed bug #17701: Generated t3x might be corrupted
index bf8897e..b840512 100644 (file)
@@ -153,7 +153,10 @@ class t3lib_extjs_ExtDirectApi {
                if (TYPO3_MODE === 'FE') {
                        $url = t3lib_div::locationHeaderUrl('?eID=ExtDirect&action=route&namespace=');
                } else {
-                       $url = t3lib_div::locationHeaderUrl('ajax.php?ajaxID=ExtDirect::route&namespace=');
+                       $url = t3lib_div::locationHeaderUrl(
+                               t3lib_div::getIndpEnv('TYPO3_SITE_URL') . TYPO3_mainDir .
+                               'ajax.php?ajaxID=ExtDirect::route&namespace='
+                       );
                }
                $url .= rawurlencode($namespace);