[TYPO3-core] RFC: typolink .addQueryString fix
Franz Holzinger
franz at fholzinger.com
Sun Apr 2 00:04:26 CEST 2006
Bernhard Kraft a écrit :
>Hello,
>
>
>This is an CVS patch request.
>
>
>Type: bugfix
>
>
>Description:
>By using the typolink property.
>.addQueryString:
>---
>Add the QUERY_STRING to the start of the link. Notice that this does not check for any duplicate
>parameters! This is not a problem (only the last parameter of the same name will be applied), but
>enable "config.uniqueLinkVars" if you still don't like it.
>----
>
>
> $content = '';
>- foreach ($q_out as $k => $v) {
>- $content .= '&'.$k.'='.($rawValues ? $v : rawurlencode($v));
>- }
>+ $content .= t3lib_div::implodeArrayForUrl('', $q_out);
> return $content;
>
make it shorter:
$content = t3lib_div::implodeArrayForUrl('', $q_out);
return $content;
- Franz
More information about the TYPO3-team-core
mailing list