Skip to content

Commit 2bea209

Browse files
committed
Merge pull request #44 from borriglione/master
Check if Mage::getEdition() exists - fixes #8
2 parents aa0ad7b + 3836f3f commit 2bea209

File tree

1 file changed

+2
-1
lines changed
  • app/code/community/Hackathon/MageMonitoring/Model/Widget/System

1 file changed

+2
-1
lines changed

app/code/community/Hackathon/MageMonitoring/Model/Widget/System/Abstract.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ public function getCpuInfo()
137137
public function getMagentoInfo($value)
138138
{
139139
if (is_null($this->_mageInfo)) {
140-
$this->_mageInfo['version'] = Mage::getVersion() . ' ' . Mage::getEdition() . ' Edition';
140+
$this->_mageInfo['version'] = Mage::getVersion() .
141+
(method_exists(Mage, 'getEdition') ? (' ' . Mage::getEdition() . ' Edition') : '');
141142
$statInfo = $this->getMagentoStatInfo();
142143
if (!is_null($statInfo)) {
143144
$this->_mageInfo = array_merge($this->_mageInfo, $statInfo);

0 commit comments

Comments
 (0)