Skip to content

Commit a1ccc3a

Browse files
authored
Some code alignments between v19 and v20 (#2810)
1 parent 372fe48 commit a1ccc3a

File tree

17 files changed

+16
-15
lines changed

17 files changed

+16
-15
lines changed

app/code/core/Mage/Catalog/Helper/Image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ public function validateUploadFile($filePath)
642642
}
643643

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

648648
$_processor = new Varien_Image($filePath);

app/code/core/Mage/CatalogInventory/Model/Stock/Item.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ protected function _construct()
168168
*/
169169
protected function _initOldFieldsMap()
170170
{
171+
// pre 1.6 fields names, old => new
171172
$this->_oldFieldsMap = [
172173
'stock_status_changed_automatically' => 'stock_status_changed_auto',
173174
'use_config_enable_qty_increments' => 'use_config_enable_qty_inc'

app/code/core/Mage/Core/etc/config.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,6 @@
488488
<protected>
489489
<app>/app/*/*</app>
490490
<dev>/dev/*/*</dev>
491-
<downloader>/downloader/*/*</downloader>
492491
<errors>/errors/*/*</errors>
493492
<includes>/includes/*/*</includes>
494493
<js>/js/*/*</js>

app/code/core/Mage/Page/Block/Html/Head.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public function addJs($name, $params = "", $referenceName = "*", $before = null)
8080
* @param string $referenceName
8181
* @param bool $before
8282
* @return $this
83+
* @deprecated
8384
*/
8485
public function addCssIe($name, $params = "", $referenceName = "*", $before = null)
8586
{

app/code/core/Mage/Sales/Model/Order.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,7 @@ protected function _construct()
518518
*/
519519
protected function _initOldFieldsMap()
520520
{
521+
// pre 1.6 fields names, old => new
521522
$this->_oldFieldsMap = Mage::helper('sales')->getOldFieldMap('order');
522523
return $this;
523524
}

app/code/core/Mage/Sales/Model/Order/Address.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ protected function _construct()
104104
* Init mapping array of short fields to its full names
105105
*
106106
* @return $this
107+
* @deprecated
107108
*/
108109
protected function _initOldFieldsMap()
109110
{

app/code/core/Mage/Sales/Model/Order/Creditmemo.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ protected function _construct()
217217
* Init mapping array of short fields to its full names
218218
*
219219
* @return $this
220+
* @deprecated
220221
*/
221222
protected function _initOldFieldsMap()
222223
{

app/code/core/Mage/Sales/Model/Order/Creditmemo/Item.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ public function setCreditmemo(Mage_Sales_Model_Order_Creditmemo $creditmemo)
143143
*/
144144
protected function _initOldFieldsMap()
145145
{
146+
// pre 1.6 fields names, old => new
146147
$this->_oldFieldsMap = Mage::helper('sales')->getOldFieldMap('creditmemo_item');
147148
return $this;
148149
}

app/code/core/Mage/Sales/Model/Order/Invoice.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ protected function _construct()
212212
* Init mapping array of short fields to its full names
213213
*
214214
* @return $this
215+
* @deprecated
215216
*/
216217
protected function _initOldFieldsMap()
217218
{

app/code/core/Mage/Sales/Model/Order/Invoice/Item.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ public function _construct()
115115
*/
116116
protected function _initOldFieldsMap()
117117
{
118+
// pre 1.6 fields names, old => new
118119
$this->_oldFieldsMap = Mage::helper('sales')->getOldFieldMap('invoice_item');
119120
return $this;
120121
}

app/code/core/Mage/Sales/Model/Order/Item.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,11 @@ protected function _construct()
237237
* its full names
238238
*
239239
* @return Varien_Object
240+
* @deprecated
240241
*/
241242
protected function _initOldFieldsMap()
242243
{
244+
// pre 1.6 fields names, old => new
243245
$this->_oldFieldsMap = Mage::helper('sales')->getOldFieldMap('order_item');
244246
return $this;
245247
}

app/code/core/Mage/Sales/Model/Order/Shipment.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ protected function _construct()
119119
* Init mapping array of short fields to its full names
120120
*
121121
* @return $this
122+
* @deprecated
122123
*/
123124
protected function _initOldFieldsMap()
124125
{

app/code/core/Mage/Sales/Model/Quote.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ protected function _construct()
254254
* its full names
255255
*
256256
* @return Varien_Object
257+
* @deprecated
257258
*/
258259
protected function _initOldFieldsMap()
259260
{

app/code/core/Mage/Sales/Model/Quote/Address.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ protected function _construct()
314314
* Init mapping array of short fields to its full names
315315
*
316316
* @return $this
317+
* @deprecated
317318
*/
318319
protected function _initOldFieldsMap()
319320
{

app/code/core/Mage/Sales/Model/Quote/Item.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ protected function _construct()
236236
* its full names
237237
*
238238
* @return $this
239+
* @deprecated
239240
*/
240241
protected function _initOldFieldsMap()
241242
{

app/locale/en_US/Mage_Catalog.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@
258258
"Details","Details"
259259
"Disabled","Disabled"
260260
"Disallowed file type.","Disallowed file type."
261-
"Disalollowed file format.","Disalollowed file format."
261+
"Disallowed file format.","Disallowed file format."
262262
"Display Actual Price","Display Actual Price"
263263
"Display Page Control","Display Page Control"
264264
"Display Price Interval as One Price","Display Price Interval as One Price"

index.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,12 @@
2929
exit;
3030
}
3131

32-
/**
33-
* Compilation includes configuration file
34-
*/
3532
define('MAGENTO_ROOT', getcwd());
3633

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

41-
if (!file_exists($mageFilename)) {
42-
if (is_dir('downloader')) {
43-
header("Location: downloader");
44-
} else {
45-
echo $mageFilename . " was not found";
46-
}
47-
exit;
48-
}
49-
5038
require MAGENTO_ROOT . '/app/bootstrap.php';
5139
require_once $mageFilename;
5240

0 commit comments

Comments
 (0)