diff options
author | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2020-02-25 07:40:20 +0000 |
---|---|---|
committer | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2020-02-25 07:40:20 +0000 |
commit | c2335f6f0e86b17ec7346580e352b3e5d77ebf9e (patch) | |
tree | 49c601aa589a876d19ef36a8665ad02dff2e1936 /Postman/Extensions/Core | |
parent | 627da3a95f28c13a9298d05487a4574dff5d205a (diff) | |
download | Post-SMTP-c2335f6f0e86b17ec7346580e352b3e5d77ebf9e.zip |
Fix slack notifications
Diffstat (limited to 'Postman/Extensions/Core')
-rw-r--r-- | Postman/Extensions/Core/Notifications/PostmanNotify.php | 1 | ||||
-rw-r--r-- | Postman/Extensions/Core/Notifications/PostmanSlackNotify.php | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Postman/Extensions/Core/Notifications/PostmanNotify.php b/Postman/Extensions/Core/Notifications/PostmanNotify.php index ae505cf..6876e16 100644 --- a/Postman/Extensions/Core/Notifications/PostmanNotify.php +++ b/Postman/Extensions/Core/Notifications/PostmanNotify.php @@ -2,6 +2,7 @@ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } + require_once 'INotify.php'; require_once 'PostmanMailNotify.php'; require_once 'PostmanPushoverNotify.php'; diff --git a/Postman/Extensions/Core/Notifications/PostmanSlackNotify.php b/Postman/Extensions/Core/Notifications/PostmanSlackNotify.php index 5b6fae3..af27bd3 100644 --- a/Postman/Extensions/Core/Notifications/PostmanSlackNotify.php +++ b/Postman/Extensions/Core/Notifications/PostmanSlackNotify.php @@ -6,7 +6,7 @@ class PostmanSlackNotify implements Postman_Notify { public function send_message($message) { - $options = PostmanOptions::getInstance(); + $options = PostmanNotifyOptions::getInstance(); $api_url = $options->getSlackToken(); |