Project

General

Profile

Bug #15752 ยป bug2743_followup.diff

Administrator Admin, 2006-03-11 13:30

View differences:

TYPO3core_testing/t3lib/class.t3lib_tstemplate.php 2006-03-11 13:26:13.000000000 +0100
function substituteConstants($all) {
if ($this->tt_track) $GLOBALS['TT']->setTSlogMessage('Constants to substitute: '.count($this->flatSetup));
return preg_replace_callback('/\{\$(.[^}]+)\}/', array($this, 'substituteConstantsCallBack'), $all);
$noChange = false;
for ($i = 0; $i < 3 && !$noChange; $i++) {
$old_all = $all;
$all = preg_replace_callback('/\{\$(.[^}]*)\}/', array($this, 'substituteConstantsCallBack'), $all);
if ($old_all == $all) {
$noChange = true;
}
}
return $all;
}
/**
    (1-1/1)