Project

General

Profile

Bug #27348 » issue_27348.patch

Patrick Schriner, 2011-06-20 10:28

View differences:

t3lib/class.t3lib_tcemain.php
*/
protected function getOuterMostInstance() {
if (!isset($this->outerMostInstance)) {
$stack = array_reverse(debug_backtrace(TRUE));
if (version_compare(PHP_VERSION, '5.3.6') >= 0) {
$backtrace = debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT | DEBUG_BACKTRACE_IGNORE_ARGS);
} elseif (version_compare(PHP_VERSION, '5.2.5') >= 0) {
$backtrace = debug_backtrace(TRUE);
} else {
$backtrace = debug_backtrace();
}
$stack = array_reverse($backtrace);
foreach ($stack as $stackItem) {
if (isset($stackItem['object']) && $stackItem['object'] instanceof t3lib_TCEmain) {
(2-2/2)