Project

General

Profile

Bug #21521 » 12545_v2.diff

Administrator Admin, 2009-11-10 19:28

View differences:

t3lib/class.t3lib_div.php (working copy)
* @param array Array of GET parameters to include
* @return string
*/
public static function linkThisScript(array $getParams = array()) {
public static function linkThisScript(array $getParams = array(), $xhtmlMode = TRUE) {
$parts = t3lib_div::getIndpEnv('SCRIPT_NAME');
$params = t3lib_div::_GET();
......
}
$pString = t3lib_div::implodeArrayForUrl('', $params);
return $pString ? $parts . '?' . preg_replace('/^&/', '', $pString) : $parts;
$pString = $pString ? $parts . '?' . preg_replace('/^&/', '', $pString) : $parts;
return $xhtmlMode ? preg_replace('/&(?!amp;)/', '&', $pString) : $pString;
}
/**
(2-2/2)