function currentPageNumber() { if ($this->currentPage != $this->pageCount) { return parent::currentPageNumber(); } else { return ''; } }
function currentPageNumber() { if (!isset($this->approxPageCount)) { return ''; } $this->pageCount = '~' . $this->approxPageCount; $buf = parent::currentPageNumber(); unset($this->pageCount); return $buf; }