コード例 #1
0
 /**
  * Modifies url by adding page parameters. When seo is on, url is additionally
  * formatted by SEO engine
  *
  * @param string $sUrl  current url
  * @param int    $iPage page number
  * @param int    $iLang active language id
  *
  * @return string
  */
 protected function _addPageNrParam($sUrl, $iPage, $iLang = null)
 {
     if (oxRegistry::getUtils()->seoIsActive() && ($oManufacturer = $this->getActManufacturer())) {
         if ($iPage) {
             // only if page number > 0
             $sUrl = $oManufacturer->getBaseSeoLink($iLang, $iPage);
         }
     } else {
         $sUrl = parent::_addPageNrParam($sUrl, $iPage, $iLang);
     }
     return $sUrl;
 }