Project

General

Profile

Bug #21853 » 13026 .diff

Administrator Admin, 2009-12-13 15:23

View differences:

t3lib/class.t3lib_install.php
$comment = ' Modified or inserted by '.$this->updateIdentity.'.';
$replace = array('["', '"]');
$search = array('[\'', '\']');
$commentblock = false;
$varDoubleQuotes = str_replace($search, $replace, $variable);
// Search for variable name:
......
$line_array = array_reverse($line_array);
foreach($line_array as $k => $v) {
$v2 = trim($v);
if (($commentblock == false) && ($v2 == '*/')) {
$commentblock = true;
} elseif (($commentblock == true) && ($v2 == '/*')){
$commentblock = false;
}
if (($commentblock == true) || (preg_match('/^#/', $v2) == true)) {
$v2 = '';
}
if ($stopAtToken && !strcmp($v2,$commentKey.$this->localconf_editPointToken)) break; // If stopAtToken and token found, break out of the loop..
if (!strcmp(substr($v2,0,strlen($variable.' ')),$variable.' ')) {
$mainparts = explode($variable,$v,2);
    (1-1/1)