[TYPO3-core] RFC: Bugfix: #10418:

Tapio Markula tapio.markula at xetpoint.fi
Thu Feb 12 20:36:37 CET 2009


Niels Pardon kirjoitti:
> Hi Tapio!
> 
> @@ -477,6 +478,7 @@
> 
>  			// if this has a value the "previous" button is always visible (will
> be forced if "showFirstLast" is set)
>  		$alwaysPrev = $showFirstLast?1:$this->pi_alwaysPrev;
> +		$alwaysNext = $this->pi_alwaysPrev;
> 
> I think this should be $alwaysNext = $this->pi_alwaysNext;
yes - sorry
> 
> I also think this is not necessary as you are not doing any additional
> checks here. So you can use $this->pi_alwaysNext; directly in the next part:
> 
> @@ -547,7 +549,7 @@
>  					$links[] =
> $this->cObj->wrap($this->pi_linkTP_keepPIvars($pageText,array($pointerName
> => ($a?$a:'')),$pi_isOnlyFields),$wrapper['inactiveLinkWrap']);
>  				}
>  			}
> -			if ($pointer<$totalPages-1 || $showFirstLast)	{
> +			if ($pointer<$totalPages-1 || $showFirstLast || $alwaysNext)	{
> 
> Greets,
> 
> Niels


More information about the TYPO3-team-core mailing list