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
662ff81d
Commit
662ff81d
authored
Jul 28, 2014
by
pupi1985
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added approve and reject hints which were missing in the admin/moderate section
parent
d4672378
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
qa-lang-question.php
qa-include/qa-lang-question.php
+6
-0
qa-page-admin-moderate.php
qa-include/qa-page-admin-moderate.php
+8
-0
No files found.
qa-include/qa-lang-question.php
View file @
662ff81d
...
...
@@ -45,7 +45,10 @@
'answer_must_confirm'
=>
'Please ^5confirm your email address^6 to answer this question.'
,
'answer_must_login'
=>
'Please ^1log in^2 or ^3register^4 to answer this question.'
,
'answer_q_popup'
=>
'Answer this question'
,
'approve_a_popup'
=>
'Approve this answer'
,
'approve_button'
=>
'approve'
,
'approve_c_popup'
=>
'Approve this comment'
,
'approve_q_popup'
=>
'Approve this question'
,
'ask_button'
=>
'Ask the Question'
,
'ask_follow_from_a'
=>
'Your question will be related to this answer:'
,
'ask_follow_title'
=>
'Ask a related question'
,
...
...
@@ -139,7 +142,10 @@
'recat_button'
=>
'recategorize'
,
'recat_popup'
=>
'Change this question\'s category'
,
'recat_q_title'
=>
'Recategorize question'
,
'reject_a_popup'
=>
'Reject this answer'
,
'reject_button'
=>
'reject'
,
'reject_c_popup'
=>
'Reject this comment'
,
'reject_q_popup'
=>
'Reject this question'
,
'remove_q_favorites'
=>
'Remove this question from my favorites'
,
'reopen_button'
=>
'reopen'
,
'reply_button'
=>
'reply'
,
...
...
qa-include/qa-page-admin-moderate.php
View file @
662ff81d
...
...
@@ -111,18 +111,26 @@
if
(
isset
(
$htmlfields
[
'what_url'
]))
// link directly to relevant content
$htmlfields
[
'url'
]
=
$htmlfields
[
'what_url'
];
$posttype
=
qa_strtolower
(
isset
(
$question
[
'obasetype'
])
?
$question
[
'obasetype'
]
:
$question
[
'basetype'
]);
$htmlfields
[
'form'
]
=
array
(
'style'
=>
'light'
,
'buttons'
=>
array
(
// Possible values for the popup (enumerated to let text searches match in the future):
// question/approve_q_popup, question/approve_a_popup and question/approve_c_popup
'approve'
=>
array
(
'tags'
=>
'name="admin_'
.
$postid
.
'_approve" onclick="return qa_admin_click(this);"'
,
'label'
=>
qa_lang_html
(
'question/approve_button'
),
'popup'
=>
qa_lang_html
(
sprintf
(
'question/approve_%s_popup'
,
$posttype
)),
),
// Possible values for the popup (enumerated to let text searches match in the future):
// question/reject_q_popup, question/reject_a_popup and question/reject_c_popup
'reject'
=>
array
(
'tags'
=>
'name="admin_'
.
$postid
.
'_reject" onclick="return qa_admin_click(this);"'
,
'label'
=>
qa_lang_html
(
'question/reject_button'
),
'popup'
=>
qa_lang_html
(
sprintf
(
'question/reject_%s_popup'
,
$posttype
)),
),
),
);
...
...
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