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

Niels Pardon mail at niels-pardon.de
Thu Feb 12 12:14:04 CET 2009


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;

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