Project

General

Profile

Bug #16580 » class.tslib_pibase.php_pointerzero2.patch

Administrator Admin, 2006-09-20 10:45

View differences:

typo3_src-4.0.2/typo3/sysext/cms/tslib/class.tslib_pibase.php 2006-09-20 10:37:06.000000000 +0200
}
if ($alwaysPrev>=0) { // Link to previous page
if ($pointer>0) {
$links[]=$this->cObj->wrap($this->pi_linkTP_keepPIvars($this->pi_getLL('pi_list_browseresults_prev','< Previous',$hscText),array($pointerName => ($pointer-1?$pointer-1:'')),$pi_isOnlyFields),$wrapper['inactiveLinkWrap']);
$links[]=$this->cObj->wrap($this->pi_linkTP_keepPIvars($this->pi_getLL('pi_list_browseresults_prev','< Previous',$hscText),array($pointerName => ($pointer-1)),$pi_isOnlyFields),$wrapper['inactiveLinkWrap']);
} elseif ($alwaysPrev) {
$links[]=$this->cObj->wrap($this->pi_getLL('pi_list_browseresults_prev','< Previous',$hscText),$wrapper['disabledLinkWrap']);
}
......
if ($this->internal['dontLinkActivePage']) {
$links[] = $this->cObj->wrap($pageText,$wrapper['activeLinkWrap']);
} else {
$links[] = $this->cObj->wrap($this->pi_linkTP_keepPIvars($pageText,array($pointerName => ($a?$a:'')),$pi_isOnlyFields),$wrapper['activeLinkWrap']);
$links[] = $this->cObj->wrap($this->pi_linkTP_keepPIvars($pageText,array($pointerName => $a),$pi_isOnlyFields),$wrapper['activeLinkWrap']);
}
} else {
$links[] = $this->cObj->wrap($this->pi_linkTP_keepPIvars($pageText,array($pointerName => ($a?$a:'')),$pi_isOnlyFields),$wrapper['inactiveLinkWrap']);
$links[] = $this->cObj->wrap($this->pi_linkTP_keepPIvars($pageText,array($pointerName => $a),$pi_isOnlyFields),$wrapper['inactiveLinkWrap']);
}
}
if ($pointer<$totalPages-1 || $showFirstLast) {
(2-2/2)