Index: t3lib/class.t3lib_install.php =================================================================== --- t3lib/class.t3lib_install.php (revision 6716) +++ t3lib/class.t3lib_install.php (working copy) @@ -142,6 +142,7 @@ $comment = ' Modified or inserted by '.$this->updateIdentity.'.'; $replace = array('["', '"]'); $search = array('[\'', '\']'); + $commentBlock = FALSE; $varDoubleQuotes = str_replace($search, $replace, $variable); // Search for variable name: @@ -149,6 +150,18 @@ $line_array = array_reverse($line_array); foreach($line_array as $k => $v) { $v2 = trim($v); + if ($v2 === '*/') { + $commentBlock = TRUE; + continue; + } + if ($v === '/*') { + $commentBlock = FALSE; + continue; + } + if ($commentBlock === TRUE || substr($v, 0, 1) === '#') { + continue; + } + 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);