Skip to content

Commit

Permalink
fixed usage of Mage_Core_Model_App
Browse files Browse the repository at this point in the history
  • Loading branch information
zohmi committed Mar 23, 2017
1 parent d3bb22c commit 417bc45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/code/community/Aoe/TemplateHints/Model/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function showHints() {
if (is_null($this->showHints)) {
$this->showHints = false;
if (Mage::helper('core')->isDevAllowed()) {
if (Mage::getSingleton('core/cookie')->get('ath') || Mage::getSingleton('core/app')->getRequest()->get('ath')) {
if (Mage::getSingleton('core/cookie')->get('ath') || Mage::app()->getRequest()->get('ath')) {
$this->showHints = true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function showHints($devMode, $cookieValue, $paramValue, $expectedShowHint
$requestMock->expects($this->any())
->method('get')
->will($this->returnValue($paramValue));
$app = Mage::getSingleton('core/app')->setRequest($requestMock);
$app = Mage::app()->setRequest($requestMock);

$this->assertEquals($expectedShowHints, $this->observer->showHints());
}
Expand Down

0 comments on commit 417bc45

Please sign in to comment.