[TYPO3-core] RFC: #14230: Match TS browser condition with all delivered browsers
Jeff Segars
jsegars at alumni.rice.edu
Wed Apr 28 06:57:56 CEST 2010
On 4/27/10 4:40 PM, Steffen Kamper wrote:
> Hi,
>
> This is an SVN patch request.
>
> Type: bugfix
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=14201
>
> Branches:
> trunk, 4_3
>
> after having 0014201 in core some browsers like chrome have 3 infos in UA:
> [webkit] => 532.5
> [chrome] => 4.1
> [safari] => 532.5
>
> current condition [browser=chrome] doesn't match as safari is the last
> browser info delivered.
>
> But the info is in "all" array of $browserInfo.
>
> So simply use the all array for compare and [browser=chrome] will work.
> Even something like [browser=webkit] works, which allows adding special
> css for webkit browsers.
>
> vg Steffen
Hey Steffen,
Either I'm missing something completely obvious or the "all" array of
browserInfo isn't actually being used.
Looks like the foreach needs an update to work on the cleaned browser
data rather than the full array.
Thanks,
jeff
More information about the TYPO3-team-core
mailing list