Skip to content

Commit 672b18d

Browse files
authored
Merge branch '1.9.4.x' into 1.9.4.x
2 parents 7866fe3 + 434e403 commit 672b18d

File tree

843 files changed

+6651
-6358
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

843 files changed

+6651
-6358
lines changed

.htaccess

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55

66
## you might also need to add this line to php.ini
77
## cgi.fix_pathinfo = 1
8-
## if it still doesn't work, rename php.ini to php5.ini
8+
## if it still doesn't work, rename php.ini to php7.ini
99

1010
############################################
1111
## default index file
1212

1313
DirectoryIndex index.php
1414

1515
############################################
16-
## php5 settings
16+
## php7 settings
1717

1818
<IfModule mod_php7.c>
1919

app/Mage.php

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,6 @@ final class Mage
108108
*/
109109
static private $_objects;
110110

111-
/**
112-
* Is downloader flag
113-
*
114-
* @var bool
115-
*/
116-
static private $_isDownloader = false;
117-
118111
/**
119112
* Is developer mode flag
120113
*
@@ -267,7 +260,6 @@ public static function reset()
267260
self::$_config = null;
268261
self::$_events = null;
269262
self::$_objects = null;
270-
self::$_isDownloader = false;
271263
self::$_isDeveloperMode = false;
272264
self::$_isInstalled = null;
273265
// do not reset $headersSentThrowsException
@@ -759,7 +751,7 @@ public static function run($code = '', $type = 'store', $options = array())
759751
require_once(self::getBaseDir() . DS . 'errors' . DS . '404.php');
760752
die();
761753
} catch (Exception $e) {
762-
if (self::isInstalled() || self::$_isDownloader) {
754+
if (self::isInstalled()) {
763755
self::printException($e);
764756
exit();
765757
}
@@ -1061,10 +1053,10 @@ public static function getScriptSystemUrl($folder, $exitIfNot = false)
10611053
/**
10621054
* Set is downloader flag
10631055
*
1064-
* @param bool $flag
1056+
* @deprecated
10651057
*/
1066-
public static function setIsDownloader($flag = true)
1058+
public static function setIsDownloader()
10671059
{
1068-
self::$_isDownloader = $flag;
1060+
10691061
}
10701062
}

app/code/core/Mage/Adminhtml/Block/Report/Customer/Accounts.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@
2929
*
3030
* @category Mage
3131
* @package Mage_Adminhtml
32-
* @author Magento Core Team <[email protected]>
32+
* @author Magento Core Team <[email protected]>
3333
*/
3434

3535
class Mage_Adminhtml_Block_Report_Customer_Accounts extends Mage_Adminhtml_Block_Widget_Grid_Container
3636
{
37-
3837
public function __construct()
3938
{
4039
$this->_controller = 'report_customer_accounts';
@@ -43,4 +42,8 @@ public function __construct()
4342
$this->_removeButton('add');
4443
}
4544

45+
public function getHeaderCssClass()
46+
{
47+
return 'icon-head head-report';
48+
}
4649
}

app/code/core/Mage/Adminhtml/Block/Report/Customer/Orders.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*
3030
* @category Mage
3131
* @package Mage_Adminhtml
32-
* @author Magento Core Team <[email protected]>
32+
* @author Magento Core Team <[email protected]>
3333
*/
3434

3535
class Mage_Adminhtml_Block_Report_Customer_Orders extends Mage_Adminhtml_Block_Widget_Grid_Container
@@ -41,4 +41,9 @@ public function __construct()
4141
parent::__construct();
4242
$this->_removeButton('add');
4343
}
44+
45+
public function getHeaderCssClass()
46+
{
47+
return 'icon-head head-report';
48+
}
4449
}

app/code/core/Mage/Adminhtml/Block/Report/Customer/Totals.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*
3030
* @category Mage
3131
* @package Mage_Adminhtml
32-
* @author Magento Core Team <[email protected]>
32+
* @author Magento Core Team <[email protected]>
3333
*/
3434

3535
class Mage_Adminhtml_Block_Report_Customer_Totals extends Mage_Adminhtml_Block_Widget_Grid_Container
@@ -41,4 +41,9 @@ public function __construct()
4141
parent::__construct();
4242
$this->_removeButton('add');
4343
}
44+
45+
public function getHeaderCssClass()
46+
{
47+
return 'icon-head head-report';
48+
}
4449
}

app/code/core/Mage/Adminhtml/Block/Report/Product.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
*
3030
* @category Mage
3131
* @package Mage_Adminhtml
32-
* @author Magento Core Team <[email protected]>
32+
* @author Magento Core Team <[email protected]>
3333
*/
34+
3435
class Mage_Adminhtml_Block_Report_Product extends Mage_Adminhtml_Block_Widget_Grid_Container
3536
{
36-
3737
public function __construct()
3838
{
3939
$this->_controller = 'report_product';
@@ -42,4 +42,8 @@ public function __construct()
4242
$this->_removeButton('add');
4343
}
4444

45+
public function getHeaderCssClass()
46+
{
47+
return 'icon-head head-report';
48+
}
4549
}

app/code/core/Mage/Adminhtml/Block/Report/Product/Downloads.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,16 @@ protected function _prepareLayout()
5555

5656
public function getStoreSwitcherHtml()
5757
{
58-
if (!Mage::app()->isSingleStoreMode()) {
59-
return $this->getChildHtml('store_switcher');
60-
}
61-
return '';
58+
return Mage::app()->isSingleStoreMode() ? '' : $this->getChildHtml('store_switcher');
6259
}
6360

6461
public function getGridHtml()
6562
{
6663
return $this->getStoreSwitcherHtml() . parent::getGridHtml();
6764
}
65+
66+
public function getHeaderCssClass()
67+
{
68+
return 'icon-head head-report';
69+
}
6870
}

app/code/core/Mage/Adminhtml/Block/Report/Product/Lowstock.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*
3030
* @category Mage
3131
* @package Mage_Adminhtml
32-
* @author Magento Core Team <[email protected]>
32+
* @author Magento Core Team <[email protected]>
3333
*/
3434

3535
class Mage_Adminhtml_Block_Report_Product_Lowstock extends Mage_Adminhtml_Block_Widget_Grid_Container
@@ -50,20 +50,21 @@ protected function _prepareLayout()
5050
->setSwitchUrl($this->getUrl('*/*/*', array('store'=>null)))
5151
->setTemplate('report/store/switcher.phtml')
5252
);
53-
5453
return parent::_prepareLayout();
5554
}
5655

5756
public function getStoreSwitcherHtml()
5857
{
59-
if (Mage::app()->isSingleStoreMode()) {
60-
return '';
61-
}
62-
return $this->getChildHtml('store_switcher');
58+
return Mage::app()->isSingleStoreMode() ? '' : $this->getChildHtml('store_switcher');
6359
}
6460

6561
public function getGridHtml()
6662
{
6763
return $this->getStoreSwitcherHtml() . parent::getGridHtml();
6864
}
65+
66+
public function getHeaderCssClass()
67+
{
68+
return 'icon-head head-report';
69+
}
6970
}

app/code/core/Mage/Adminhtml/Block/Report/Product/Ordered.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
*
3030
* @deprecated after 1.4.0.1
3131
*/
32+
3233
class Mage_Adminhtml_Block_Report_Product_Ordered extends Mage_Adminhtml_Block_Widget_Grid_Container
3334
{
3435
public function __construct()
@@ -38,4 +39,9 @@ public function __construct()
3839
parent::__construct();
3940
$this->_removeButton('add');
4041
}
42+
43+
public function getHeaderCssClass()
44+
{
45+
return 'icon-head head-report';
46+
}
4147
}

app/code/core/Mage/Adminhtml/Block/Report/Product/Sold.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,26 @@
2424
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
2525
*/
2626

27-
2827
/**
2928
* Adminhtml Report Sold Product Content Block
3029
*
3130
* @category Mage
3231
* @package Mage_Adminhtml
3332
* @author Magento Core Team <[email protected]>
3433
*/
34+
3535
class Mage_Adminhtml_Block_Report_Product_Sold extends Mage_Adminhtml_Block_Widget_Grid_Container
3636
{
37-
/**
38-
* Initialize container block settings
39-
*
40-
*/
4137
public function __construct()
4238
{
4339
$this->_controller = 'report_product_sold';
4440
$this->_headerText = Mage::helper('reports')->__('Products Ordered');
4541
parent::__construct();
4642
$this->_removeButton('add');
4743
}
44+
45+
public function getHeaderCssClass()
46+
{
47+
return 'icon-head head-report';
48+
}
4849
}

app/code/core/Mage/Adminhtml/Block/Report/Product/Viewed.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*
3030
* @category Mage
3131
* @package Mage_Adminhtml
32-
* @author Magento Core Team <[email protected]>
32+
* @author Magento Core Team <[email protected]>
3333
*/
3434

3535
class Mage_Adminhtml_Block_Report_Product_Viewed extends Mage_Adminhtml_Block_Widget_Grid_Container
@@ -47,14 +47,14 @@ public function __construct()
4747
));
4848
}
4949

50-
/**
51-
* Get filter url
52-
*
53-
* @return string
54-
*/
5550
public function getFilterUrl()
5651
{
5752
$this->getRequest()->setParam('filter', null);
5853
return $this->getUrl('*/*/viewed', array('_current' => true));
5954
}
55+
56+
public function getHeaderCssClass()
57+
{
58+
return 'icon-head head-report';
59+
}
6060
}

app/code/core/Mage/Adminhtml/Block/Report/Refresh/Statistics.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,9 @@ public function __construct()
4141
parent::__construct();
4242
$this->_removeButton('add');
4343
}
44+
45+
public function getHeaderCssClass()
46+
{
47+
return 'icon-head head-report';
48+
}
4449
}

app/code/core/Mage/Adminhtml/Block/Report/Review/Customer.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@
2929
*
3030
* @category Mage
3131
* @package Mage_Adminhtml
32-
* @author Magento Core Team <[email protected]>
32+
* @author Magento Core Team <[email protected]>
3333
*/
3434

3535
class Mage_Adminhtml_Block_Report_Review_Customer extends Mage_Adminhtml_Block_Widget_Grid_Container
3636
{
37-
3837
public function __construct()
3938
{
4039
$this->_controller = 'report_review_customer';
@@ -43,4 +42,8 @@ public function __construct()
4342
$this->_removeButton('add');
4443
}
4544

45+
public function getHeaderCssClass()
46+
{
47+
return 'icon-head head-report';
48+
}
4649
}

app/code/core/Mage/Adminhtml/Block/Report/Review/Detail.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,24 @@
2929
*
3030
* @category Mage
3131
* @package Mage_Adminhtml
32-
* @author Magento Core Team <[email protected]>
32+
* @author Magento Core Team <[email protected]>
3333
*/
3434

3535
class Mage_Adminhtml_Block_Report_Review_Detail extends Mage_Adminhtml_Block_Widget_Grid_Container
3636
{
37-
3837
public function __construct()
3938
{
4039
$this->_controller = 'report_review_detail';
41-
4240
$product = Mage::getModel('catalog/product')->load($this->getRequest()->getParam('id'));
4341
$this->_headerText = Mage::helper('reports')->__('Reviews for %s', $this->escapeHtml($product->getName()));
44-
4542
parent::__construct();
4643
$this->_removeButton('add');
4744
$this->setBackUrl($this->getUrl('*/report_review/product/'));
4845
$this->_addBackButton();
4946
}
5047

48+
public function getHeaderCssClass()
49+
{
50+
return 'icon-head head-report';
51+
}
5152
}

app/code/core/Mage/Adminhtml/Block/Report/Review/Product.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
*
3030
* @category Mage
3131
* @package Mage_Adminhtml
32-
* @author Magento Core Team <[email protected]>
32+
* @author Magento Core Team <[email protected]>
3333
*/
34+
3435
class Mage_Adminhtml_Block_Report_Review_Product extends Mage_Adminhtml_Block_Widget_Grid_Container
3536
{
36-
3737
public function __construct()
3838
{
3939
$this->_controller = 'report_review_product';
@@ -42,4 +42,8 @@ public function __construct()
4242
$this->_removeButton('add');
4343
}
4444

45+
public function getHeaderCssClass()
46+
{
47+
return 'icon-head head-report';
48+
}
4549
}

app/code/core/Mage/Adminhtml/Block/Report/Sales/Bestsellers.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@
2929
*
3030
* @category Mage
3131
* @package Mage_Adminhtml
32-
* @author Magento Core Team <[email protected]>
32+
* @author Magento Core Team <[email protected]>
3333
*/
3434

3535
class Mage_Adminhtml_Block_Report_Sales_Bestsellers extends Mage_Adminhtml_Block_Widget_Grid_Container
3636
{
37-
3837
public function __construct()
3938
{
4039
$this->_controller = 'report_sales_bestsellers';
@@ -53,4 +52,9 @@ public function getFilterUrl()
5352
$this->getRequest()->setParam('filter', null);
5453
return $this->getUrl('*/*/bestsellers', array('_current' => true));
5554
}
55+
56+
public function getHeaderCssClass()
57+
{
58+
return 'icon-head head-report';
59+
}
5660
}

0 commit comments

Comments
 (0)