[BUGFIX] BE ajax request fails on some systems with php 5.3
authorJoh. Feustel <j@feustel.eu>
Mon, 28 Mar 2011 07:32:57 +0000 (09:32 +0200)
committerXavier Perseguers <typo3@perseguers.ch>
Mon, 28 Mar 2011 14:25:03 +0000 (16:25 +0200)
Because of a PHP bug on some systems the request to ajax.php fails because it
includes '../t3lib/class.t3lib_div.php' with relative path while init.php uses
PATH_t3lib . 'class.t3lib_div.php'.
On some systems PHP is not able to detect the already included file when a
different path is used.

Change-Id: I66e39690747c4f78b4571cf63777d98cb88b6b75
Resolves: #M17250
Reviewed-on: http://review.typo3.org/1286
Reviewed-by: Joh. Feustel
Tested-by: Joh. Feustel
Reviewed-by: Steffen Kamper
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers

index 660c0a1..3aae10a 100644 (file)
@@ -33,7 +33,7 @@
 $TYPO3_AJAX = true;
 // include t3lib_div at this time to get the GET/POST methods it provides
+require_once(dirname(__FILE__) . '/../t3lib/class.t3lib_div.php');
 // first get the ajaxID
 $ajaxID = (string)t3lib_div::_GP('ajaxID');