Commit 2077b32c authored by Bertrand Gorge's avatar Bertrand Gorge

Fixed deprecated includes

Fixes #8
parent ad283049
...@@ -54,7 +54,7 @@ class qa_email_notifications_event { ...@@ -54,7 +54,7 @@ class qa_email_notifications_event {
function qa_db_notificaton_emails_selectspec($userid, $tags, $categoryid) { function qa_db_notificaton_emails_selectspec($userid, $tags, $categoryid) {
if ($this->plugin_enabled_from_admin_panel()) { //proceed only if the plugin is enabled if ($this->plugin_enabled_from_admin_panel()) { //proceed only if the plugin is enabled
require_once QA_INCLUDE_DIR . 'qa-app-updates.php'; require_once QA_INCLUDE_DIR . 'app/updates.php';
$source = ''; $source = '';
$arguments = array(); $arguments = array();
...@@ -120,8 +120,8 @@ class qa_email_notifications_event { ...@@ -120,8 +120,8 @@ class qa_email_notifications_event {
if ($qa_notifications_suspended > 0) return false; if ($qa_notifications_suspended > 0) return false;
require_once QA_INCLUDE_DIR . 'qa-db-selects.php'; require_once QA_INCLUDE_DIR . 'db/selects.php';
require_once QA_INCLUDE_DIR . 'qa-util-string.php'; require_once QA_INCLUDE_DIR . 'util/string.php';
$subs['^site_title'] = qa_opt('site_title'); $subs['^site_title'] = qa_opt('site_title');
$subs['^handle'] = $handle; $subs['^handle'] = $handle;
...@@ -147,8 +147,7 @@ class qa_email_notifications_event { ...@@ -147,8 +147,7 @@ class qa_email_notifications_event {
return qa_call_override(__FUNCTION__, $args); return qa_call_override(__FUNCTION__, $args);
} }
require_once QA_INCLUDE_DIR . 'qa-class.phpmailer.php'; require_once QA_INCLUDE_DIR . 'vendor/PHPMailer/PHPMailerAutoload.php';
$mailer = new PHPMailer(); $mailer = new PHPMailer();
$mailer->CharSet = 'utf-8'; $mailer->CharSet = 'utf-8';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment