Skip to content

Commit

Permalink
Fix critical typos that prevent errors from being reported! (bugsnag#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-richards authored and kattrali committed May 11, 2016
1 parent 53350f7 commit 83716c0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/app/code/community/Bugsnag/Notifier/Model/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Bugsnag_Notifier_Model_Observer
private $notifySeverities;
private $filterFields;

public static function fireTestEvent($apiKey) {
public function fireTestEvent($apiKey) {
if (strlen($apiKey) != 32) {
throw new Exception("Invalid length of the API key");
}
Expand All @@ -38,8 +38,8 @@ public function initBugsnag()
}

$this->apiKey = Mage::getStoreConfig("dev/Bugsnag_Notifier/apiKey");
$this->notifySeverities = Mage::getStoreConfig("dev/Bugsnag_Notifier/severites");
$this->filterFields = Mage::getStoreConfig("dev/Bugsnag_Notifier/filterFiels");
$this->notifySeverities = Mage::getStoreConfig("dev/Bugsnag_Notifier/severities");
$this->filterFields = Mage::getStoreConfig("dev/Bugsnag_Notifier/filterFields");

// Activate the bugsnag client
if (!empty($this->apiKey)) {
Expand Down Expand Up @@ -100,4 +100,4 @@ private function filterFields()
return array_map('trim', explode("\n", $this->filterFields));
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ class Bugsnag_Notifier_Adminhtml_BugsnagController extends Mage_Adminhtml_Contro
{
public function checkAction()
{
Bugsnag_Notifier_Model_Observer::fireTestEvent($_POST["apiKey"]);
$obs = Mage::getModel('Bugsnag_Notifier/Observer');
$obs->fireTestEvent($_POST["apiKey"]);
$successCode = 1;
Mage::app()->getResponse()->setBody($successCode);
}
Expand Down
4 changes: 2 additions & 2 deletions src/app/code/community/Bugsnag/Notifier/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<global>
<models>
<Bugsnag_Notifier>
<class>Bugsang_Notifier_Model</class>
<class>Bugsnag_Notifier_Model</class>
</Bugsnag_Notifier>
</models>
<events>
Expand All @@ -28,7 +28,7 @@
<adminhtml>
<args>
<modules>
<Bungsnag_Notifier after="Mage_Adminhtml">Bugsnag_Notifier</Bungsnag_Notifier>
<Bugsnag_Notifier after="Mage_Adminhtml">Bugsnag_Notifier</Bugsnag_Notifier>
</modules>
</args>
</adminhtml>
Expand Down

0 comments on commit 83716c0

Please sign in to comment.