From c2335f6f0e86b17ec7346580e352b3e5d77ebf9e Mon Sep 17 00:00:00 2001 From: yehudah Date: Tue, 25 Feb 2020 07:40:20 +0000 Subject: Fix slack notifications --- Postman/Extensions/Core/Notifications/PostmanNotify.php | 1 + Postman/Extensions/Core/Notifications/PostmanSlackNotify.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'Postman/Extensions') 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(); -- cgit v1.2.3