Skip to content

Commit

Permalink
Reverted changes to Mage_Core_Model_Website
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel committed Aug 24, 2024
1 parent 5c2b8a7 commit e55c6f3
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions app/code/core/Mage/Core/Model/Website.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ public function getConfig($path)
$config = Mage::getConfig()->getNode('websites/' . $this->getCode() . '/' . $path);
if (!$config) {
return false;
#throw Mage::exception('Mage_Core', Mage::helper('core')->__('Invalid website\'s configuration path: %s', $path));
}
if ($config->hasChildren()) {
$value = [];
Expand Down Expand Up @@ -259,7 +260,6 @@ public function setGroups($groups)
* Retrieve new (not loaded) Group collection object with website filter
*
* @return Mage_Core_Model_Resource_Store_Group_Collection
* @throws Mage_Core_Exception
*/
public function getGroupCollection()
{
Expand Down Expand Up @@ -326,7 +326,6 @@ public function getDefaultGroup()
/**
* Load store collection and set internal data
*
* @throws Mage_Core_Exception
*/
protected function _loadStores()
{
Expand Down Expand Up @@ -369,7 +368,6 @@ public function setStores($stores)
* Retrieve new (not loaded) Store collection object with website filter
*
* @return Mage_Core_Model_Resource_Store_Collection
* @throws Mage_Core_Exception
*/
public function getStoreCollection()
{
Expand All @@ -379,10 +377,9 @@ public function getStoreCollection()
}

/**
* Retrieve website store objects
* Retrieve wersite store objects
*
* @return Mage_Core_Model_Store[]
* @throws Mage_Core_Exception
*/
public function getStores()
{
Expand All @@ -396,7 +393,6 @@ public function getStores()
* Retrieve website store ids
*
* @return array
* @throws Mage_Core_Exception
*/
public function getStoreIds()
{
Expand All @@ -410,7 +406,6 @@ public function getStoreIds()
* Retrieve website store codes
*
* @return array
* @throws Mage_Core_Exception
*/
public function getStoreCodes()
{
Expand All @@ -424,7 +419,6 @@ public function getStoreCodes()
* Retrieve number stores in a website
*
* @return int
* @throws Mage_Core_Exception
*/
public function getStoresCount()
{
Expand All @@ -438,7 +432,6 @@ public function getStoresCount()
* is can delete website
*
* @return bool
* @throws Mage_Core_Exception
*/
public function isCanDelete()
{
Expand Down Expand Up @@ -480,7 +473,6 @@ public function getCode()

/**
* @inheritDoc
* @throws Mage_Core_Exception
*/
protected function _beforeDelete()
{
Expand Down Expand Up @@ -537,7 +529,6 @@ public function getBaseCurrency()
* Retrieve Default Website Store or null
*
* @return Mage_Core_Model_Store
* @throws Mage_Core_Exception
*/
public function getDefaultStore()
{
Expand Down

0 comments on commit e55c6f3

Please sign in to comment.