Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Q
q2a-email-notification
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
contest
pdp-intro
q2a-email-notification
Commits
534b50a6
Commit
534b50a6
authored
Nov 07, 2020
by
Nikolaos S. Papaspyrou
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'pr9/master' into nickie-merge-pr9
parents
eeb8a4e3
2077b32c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
19 deletions
+18
-19
qa-email-notifications-event.php
qa-email-notifications-event.php
+18
-19
No files found.
qa-email-notifications-event.php
View file @
534b50a6
...
...
@@ -20,9 +20,9 @@ class qa_email_notifications_event {
function
process_event
(
$event
,
$userid
,
$handle
,
$cookieid
,
$params
)
{
if
(
$this
->
plugin_enabled_from_admin_panel
())
{
//proceed only if the plugin is enabled
require_once
QA_INCLUDE_DIR
.
'
qa-app-
emails.php'
;
require_once
QA_INCLUDE_DIR
.
'
qa-app-
format.php'
;
require_once
QA_INCLUDE_DIR
.
'
qa-util-
string.php'
;
require_once
QA_INCLUDE_DIR
.
'
app/
emails.php'
;
require_once
QA_INCLUDE_DIR
.
'
app/
format.php'
;
require_once
QA_INCLUDE_DIR
.
'
util/
string.php'
;
switch
(
$event
)
{
case
'q_post'
:
...
...
@@ -54,7 +54,7 @@ class qa_email_notifications_event {
function
qa_db_notificaton_emails_selectspec
(
$userid
,
$tags
,
$categoryid
)
{
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
=
''
;
$arguments
=
array
();
...
...
@@ -120,8 +120,8 @@ class qa_email_notifications_event {
if
(
$qa_notifications_suspended
>
0
)
return
false
;
require_once
QA_INCLUDE_DIR
.
'
qa-db-
selects.php'
;
require_once
QA_INCLUDE_DIR
.
'
qa-util-
string.php'
;
require_once
QA_INCLUDE_DIR
.
'
db/
selects.php'
;
require_once
QA_INCLUDE_DIR
.
'
util/
string.php'
;
$subs
[
'^site_title'
]
=
qa_opt
(
'site_title'
);
$subs
[
'^handle'
]
=
$handle
;
...
...
@@ -147,8 +147,7 @@ class qa_email_notifications_event {
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
->
CharSet
=
'utf-8'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment