Skip to content

Commit

Permalink
Some code alignments between v19 and v20 (#2810)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel authored Dec 16, 2022
1 parent 372fe48 commit a1ccc3a
Show file tree
Hide file tree
Showing 17 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Catalog/Helper/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ public function validateUploadFile($filePath)
}

if ($imageInfo[0] > $maxDimension || $imageInfo[1] > $maxDimension) {
Mage::throwException($this->__('Disalollowed file format.'));
Mage::throwException($this->__('Disallowed file format.'));
}

$_processor = new Varien_Image($filePath);
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/CatalogInventory/Model/Stock/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ protected function _construct()
*/
protected function _initOldFieldsMap()
{
// pre 1.6 fields names, old => new
$this->_oldFieldsMap = [
'stock_status_changed_automatically' => 'stock_status_changed_auto',
'use_config_enable_qty_increments' => 'use_config_enable_qty_inc'
Expand Down
1 change: 0 additions & 1 deletion app/code/core/Mage/Core/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,6 @@
<protected>
<app>/app/*/*</app>
<dev>/dev/*/*</dev>
<downloader>/downloader/*/*</downloader>
<errors>/errors/*/*</errors>
<includes>/includes/*/*</includes>
<js>/js/*/*</js>
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Page/Block/Html/Head.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public function addJs($name, $params = "", $referenceName = "*", $before = null)
* @param string $referenceName
* @param bool $before
* @return $this
* @deprecated
*/
public function addCssIe($name, $params = "", $referenceName = "*", $before = null)
{
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Sales/Model/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ protected function _construct()
*/
protected function _initOldFieldsMap()
{
// pre 1.6 fields names, old => new
$this->_oldFieldsMap = Mage::helper('sales')->getOldFieldMap('order');
return $this;
}
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Sales/Model/Order/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ protected function _construct()
* Init mapping array of short fields to its full names
*
* @return $this
* @deprecated
*/
protected function _initOldFieldsMap()
{
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Sales/Model/Order/Creditmemo.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ protected function _construct()
* Init mapping array of short fields to its full names
*
* @return $this
* @deprecated
*/
protected function _initOldFieldsMap()
{
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Sales/Model/Order/Creditmemo/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ public function setCreditmemo(Mage_Sales_Model_Order_Creditmemo $creditmemo)
*/
protected function _initOldFieldsMap()
{
// pre 1.6 fields names, old => new
$this->_oldFieldsMap = Mage::helper('sales')->getOldFieldMap('creditmemo_item');
return $this;
}
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Sales/Model/Order/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ protected function _construct()
* Init mapping array of short fields to its full names
*
* @return $this
* @deprecated
*/
protected function _initOldFieldsMap()
{
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Sales/Model/Order/Invoice/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public function _construct()
*/
protected function _initOldFieldsMap()
{
// pre 1.6 fields names, old => new
$this->_oldFieldsMap = Mage::helper('sales')->getOldFieldMap('invoice_item');
return $this;
}
Expand Down
2 changes: 2 additions & 0 deletions app/code/core/Mage/Sales/Model/Order/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,11 @@ protected function _construct()
* its full names
*
* @return Varien_Object
* @deprecated
*/
protected function _initOldFieldsMap()
{
// pre 1.6 fields names, old => new
$this->_oldFieldsMap = Mage::helper('sales')->getOldFieldMap('order_item');
return $this;
}
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Sales/Model/Order/Shipment.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ protected function _construct()
* Init mapping array of short fields to its full names
*
* @return $this
* @deprecated
*/
protected function _initOldFieldsMap()
{
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Sales/Model/Quote.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ protected function _construct()
* its full names
*
* @return Varien_Object
* @deprecated
*/
protected function _initOldFieldsMap()
{
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Sales/Model/Quote/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ protected function _construct()
* Init mapping array of short fields to its full names
*
* @return $this
* @deprecated
*/
protected function _initOldFieldsMap()
{
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Sales/Model/Quote/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ protected function _construct()
* its full names
*
* @return $this
* @deprecated
*/
protected function _initOldFieldsMap()
{
Expand Down
2 changes: 1 addition & 1 deletion app/locale/en_US/Mage_Catalog.csv
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@
"Details","Details"
"Disabled","Disabled"
"Disallowed file type.","Disallowed file type."
"Disalollowed file format.","Disalollowed file format."
"Disallowed file format.","Disallowed file format."
"Display Actual Price","Display Actual Price"
"Display Page Control","Display Page Control"
"Display Price Interval as One Price","Display Price Interval as One Price"
Expand Down
12 changes: 0 additions & 12 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,12 @@
exit;
}

/**
* Compilation includes configuration file
*/
define('MAGENTO_ROOT', getcwd());

$mageFilename = MAGENTO_ROOT . '/app/Mage.php';
$maintenanceFile = 'maintenance.flag';
$maintenanceIpFile = 'maintenance.ip';

if (!file_exists($mageFilename)) {
if (is_dir('downloader')) {
header("Location: downloader");
} else {
echo $mageFilename . " was not found";
}
exit;
}

require MAGENTO_ROOT . '/app/bootstrap.php';
require_once $mageFilename;

Expand Down

0 comments on commit a1ccc3a

Please sign in to comment.