Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
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
outils
question2answer
Commits
c44b9791
Commit
c44b9791
authored
Jul 01, 2022
by
Félicie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mail revoved
parent
1b490a48
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
ask.php
qa-include/pages/ask.php
+2
-2
question-view.php
qa-include/pages/question-view.php
+4
-4
No files found.
qa-include/pages/ask.php
View file @
c44b9791
...
...
@@ -297,8 +297,8 @@ if (!isset($userid) && qa_opt('allow_anonymous_naming')) {
qa_set_up_name_field
(
$qa_content
,
$qa_content
[
'form'
][
'fields'
],
@
$in
[
'name'
]);
}
qa_set_up_notify_fields
(
$qa_content
,
$qa_content
[
'form'
][
'fields'
],
'Q'
,
qa_get_logged_in_email
(),
isset
(
$in
[
'notify'
])
?
$in
[
'notify'
]
:
qa_opt
(
'notify_users_default'
),
@
$in
[
'email'
],
@
$errors
[
'email'
]);
//
qa_set_up_notify_fields($qa_content, $qa_content['form']['fields'], 'Q', qa_get_logged_in_email(),
//
isset($in['notify']) ? $in['notify'] : qa_opt('notify_users_default'), @$in['email'], @$errors['email']);
if
(
$captchareason
)
{
require_once
QA_INCLUDE_DIR
.
'app/captcha.php'
;
...
...
qa-include/pages/question-view.php
View file @
c44b9791
...
...
@@ -980,8 +980,8 @@ function qa_page_q_add_a_form(&$qa_content, $formid, $captchareason, $question,
if
(
!
qa_is_logged_in
()
&&
qa_opt
(
'allow_anonymous_naming'
))
qa_set_up_name_field
(
$qa_content
,
$form
[
'fields'
],
@
$in
[
'name'
],
'a_'
);
qa_set_up_notify_fields
(
$qa_content
,
$form
[
'fields'
],
'A'
,
qa_get_logged_in_email
(),
isset
(
$in
[
'notify'
])
?
$in
[
'notify'
]
:
qa_opt
(
'notify_users_default'
),
@
$in
[
'email'
],
@
$errors
[
'email'
],
'a_'
);
//
qa_set_up_notify_fields($qa_content, $form['fields'], 'A', qa_get_logged_in_email(),
//
isset($in['notify']) ? $in['notify'] : qa_opt('notify_users_default'), @$in['email'], @$errors['email'], 'a_');
$onloads
=
array
();
...
...
@@ -1130,8 +1130,8 @@ function qa_page_q_add_c_form(&$qa_content, $question, $parent, $formid, $captch
if
(
!
qa_is_logged_in
()
&&
qa_opt
(
'allow_anonymous_naming'
))
qa_set_up_name_field
(
$qa_content
,
$form
[
'fields'
],
@
$in
[
'name'
],
$prefix
);
qa_set_up_notify_fields
(
$qa_content
,
$form
[
'fields'
],
'C'
,
qa_get_logged_in_email
(),
isset
(
$in
[
'notify'
])
?
$in
[
'notify'
]
:
qa_opt
(
'notify_users_default'
),
@
$in
[
'email'
],
@
$errors
[
'email'
],
$prefix
);
//
qa_set_up_notify_fields($qa_content, $form['fields'], 'C', qa_get_logged_in_email(),
//
isset($in['notify']) ? $in['notify'] : qa_opt('notify_users_default'), @$in['email'], @$errors['email'], $prefix);
$onloads
=
array
();
...
...
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