/** * Refresh products for category * * @param Varien_Object $category * @return Mage_Catalog_Model_Url */ protected function _refreshCategoryProductRewrites(Varien_Object $category) { if ($this->_helper()->DoNotUseCategoryPathInProduct($category->getStoreId())) { return parent::_refreshCategoryProductRewrites($category); } return $this; }