Zum Inhalt springen

Bug & Patch: kein StdWrap um select.max und select.begin

Erstellt am 29. Juni 2006 · 1 Antwort · letzte Antwort am 29. Juni 2006

Tags: Frage

basti79 ·

Der Volldefekt, den hier schon einige bemerkt haben, dass man in select.max und select.begin keine Variablen einsetzen kann, hat mit diesem Patch ein Ende:

6567c6567
<                               if ($conf['begin'] && !$conf['max'])    {
---
>                               if ($conf['begin'] && !$conf['max'] && !$conf['max.'])  {
6571,6572c6571,6572
<                               if ($conf['begin'] && $conf['max'])     {
<                                       $queryParts['LIMIT'] = $this->stdWrap($conf['begin']).','.$this->stdWrap($conf['max']);
---
>                               if (($conf['begin']||$conf['begin.']) && $conf['max'])  {
>                                       $queryParts['LIMIT'] = $this->stdWrap($conf['begin'],$conf['begin.']).','.$this->stdWrap($conf['max'],$conf['max.']);
6574c6574
<                                       $queryParts['LIMIT'] = $this->stdWrap($conf['max']);
---
>                                       $queryParts['LIMIT'] = $this->stdWrap($conf['max'],$conf['max.']);
6576a6577
>

anzuwenden auf typo3/sysext/cms/tslib/class.tslib_content.php

Ich bitte zufällig anwesende Devs, diesen Patch in die richtigen Wege zu leiten. Danke.