Bug #16580 » class.tslib_pibase.php_pointerzero2.patch
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) {
|
- « Previous
- 1
- 2
- Next »