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
db0ca0eb
Commit
db0ca0eb
authored
Sep 05, 2017
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make user navigation on PMs consistent
parent
9b1e7d63
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
format.php
qa-include/app/format.php
+1
-0
message.php
qa-include/pages/message.php
+1
-1
messages.php
qa-include/pages/messages.php
+8
-1
No files found.
qa-include/app/format.php
View file @
db0ca0eb
...
@@ -1513,6 +1513,7 @@ function qa_user_sub_navigation($handle, $selected, $ismyuser = false)
...
@@ -1513,6 +1513,7 @@ function qa_user_sub_navigation($handle, $selected, $ismyuser = false)
/**
/**
* Return the sub navigation structure for private message pages
* Return the sub navigation structure for private message pages
* @deprecated 1.8.0 This menu is no longer used.
* @param null $selected
* @param null $selected
* @return array
* @return array
*/
*/
...
...
qa-include/pages/message.php
View file @
db0ca0eb
...
@@ -237,7 +237,7 @@ if (qa_opt('show_message_history')) {
...
@@ -237,7 +237,7 @@ if (qa_opt('show_message_history')) {
$qa_content
[
'message_list'
][
'messages'
][]
=
qa_message_html_fields
(
$message
,
$options
);
$qa_content
[
'message_list'
][
'messages'
][]
=
qa_message_html_fields
(
$message
,
$options
);
}
}
$qa_content
[
'navigation'
][
'sub'
]
=
qa_
messages_sub_navigation
(
);
$qa_content
[
'navigation'
][
'sub'
]
=
qa_
user_sub_navigation
(
$fromhandle
,
'messages'
,
true
);
}
}
...
...
qa-include/pages/messages.php
View file @
db0ca0eb
...
@@ -75,6 +75,13 @@ $count = $numMessages['count'];
...
@@ -75,6 +75,13 @@ $count = $numMessages['count'];
$qa_content
=
qa_content_prepare
();
$qa_content
=
qa_content_prepare
();
$qa_content
[
'title'
]
=
qa_lang_html
(
$showOutbox
?
'misc/pm_outbox_title'
:
'misc/pm_inbox_title'
);
$qa_content
[
'title'
]
=
qa_lang_html
(
$showOutbox
?
'misc/pm_outbox_title'
:
'misc/pm_inbox_title'
);
$qa_content
[
'custom'
]
=
'<div style="text-align:center">'
.
(
$showOutbox
?
'<a href="'
.
qa_path_html
(
'messages'
)
.
'">'
.
qa_lang_html
(
'misc/inbox'
)
.
'</a>'
:
qa_lang_html
(
'misc/inbox'
))
.
' - '
.
(
$showOutbox
?
qa_lang_html
(
'misc/outbox'
)
:
'<a href="'
.
qa_path_html
(
'messages/sent'
)
.
'">'
.
qa_lang_html
(
'misc/outbox'
)
.
'</a>'
)
.
'</div>'
;
$qa_content
[
'message_list'
]
=
array
(
$qa_content
[
'message_list'
]
=
array
(
'tags'
=>
'id="privatemessages"'
,
'tags'
=>
'id="privatemessages"'
,
'messages'
=>
array
(),
'messages'
=>
array
(),
...
@@ -122,6 +129,6 @@ foreach ($userMessages as $message) {
...
@@ -122,6 +129,6 @@ foreach ($userMessages as $message) {
$qa_content
[
'page_links'
]
=
qa_html_page_links
(
qa_request
(),
$start
,
$pagesize
,
$count
,
qa_opt
(
'pages_prev_next'
));
$qa_content
[
'page_links'
]
=
qa_html_page_links
(
qa_request
(),
$start
,
$pagesize
,
$count
,
qa_opt
(
'pages_prev_next'
));
$qa_content
[
'navigation'
][
'sub'
]
=
qa_
messages_sub_navigation
(
$showOutbox
?
'outbox'
:
'inbox'
);
$qa_content
[
'navigation'
][
'sub'
]
=
qa_
user_sub_navigation
(
$loginUserHandle
,
'messages'
,
true
);
return
$qa_content
;
return
$qa_content
;
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