source/Application/Model/SeoEncoderArticle.php
protected function _getCategory($oArticle, $iLang)
    {
        $oCat = null;
        $oView = \OxidEsales\Eshop\Core\Registry::getConfig()->getActiveView();
        if ($oView instanceof \OxidEsales\Eshop\Application\Controller\FrontendController) {
            $oCat = $oView->getActiveCategory();
        } elseif ($oView instanceof \OxidEsales\Eshop\Core\Controller\BaseController) {
            $oCat = $oView->getActCategory();
        }

        return $oCat;
    }
protected function _getCategory($oArticle, $iLang)
    {
        $oCat = null;
        $oView = \OxidEsales\Eshop\Core\Registry::getConfig()->getActiveView();
        if ($oView instanceof \OxidEsales\Eshop\Application\Controller\FrontendController) {
            $oCat = $oView->getActiveCategory();
        } elseif ($oView instanceof \OxidEsales\Eshop\Core\Controller\BaseController) {
            $oCat = $oView->getActCategory();
        }

        return $oCat;
    }
protected function _getCategory ( $ oArticle , $ iLang ) { $ oCat = null ; $ oView = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getActiveView ( ) ; if ( $ oView instanceof \ OxidEsales \ Eshop \ Application \ Controller \ FrontendController ) { $ oCat = $ oView -> getActiveCategory ( ) ; } elseif ( $ oView instanceof \ OxidEsales \ Eshop \ Core \ Controller \ BaseController ) { $ oCat = $ oView -> getActCategory ( ) ; } return $ oCat ; }
Returns active category if available

@param \OxidEsales\Eshop\Application\Model\Article $oArticle product
@param int                                         $iLang    language id

@return \OxidEsales\Eshop\Application\Model\Category | null
Returns active category if available