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
7f8e3a71
Commit
7f8e3a71
authored
Dec 23, 2014
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix admin/users menu item not being selected
parent
62362f80
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
admin.php
qa-include/app/admin.php
+2
-1
qa-page.php
qa-include/qa-page.php
+6
-6
No files found.
qa-include/app/admin.php
View file @
7f8e3a71
...
...
@@ -284,9 +284,10 @@
'url'
=>
qa_path_html
(
'admin/emails'
),
);
$navigation
[
'admin/user'
]
=
array
(
$navigation
[
'admin/user
s
'
]
=
array
(
'label'
=>
qa_lang_html
(
'admin/users_title'
),
'url'
=>
qa_path_html
(
'admin/users'
),
'selected_on'
=>
array
(
'admin/users$'
,
'admin/userfields$'
,
'admin/usertitles$'
),
);
$navigation
[
'admin/layout'
]
=
array
(
...
...
qa-include/qa-page.php
View file @
7f8e3a71
...
...
@@ -247,9 +247,9 @@
foreach
(
$navigation
as
$navprefix
=>
$navlink
)
{
$selected
=&
$qa_content
[
'navigation'
][
$navtype
][
$navprefix
][
'selected'
];
if
(
isset
(
$navlink
[
'select
paths
'
]))
{
if
(
isset
(
$navlink
[
'select
ed_on
'
]))
{
// match specified paths
foreach
(
$navlink
[
'select
paths
'
]
as
$path
)
{
foreach
(
$navlink
[
'select
ed_on
'
]
as
$path
)
{
if
(
strpos
(
$requestlower
.
'$'
,
$path
)
===
0
)
$selected
=
true
;
}
...
...
@@ -583,21 +583,21 @@
$qa_content
[
'navigation'
][
'main'
][
'tag'
]
=
array
(
'url'
=>
qa_path_html
(
'tags'
),
'label'
=>
qa_lang_html
(
'main/nav_tags'
),
'select
paths
'
=>
array
(
'tags$'
,
'tag/'
),
'select
ed_on
'
=>
array
(
'tags$'
,
'tag/'
),
);
if
(
qa_using_categories
()
&&
qa_opt
(
'nav_categories'
))
$qa_content
[
'navigation'
][
'main'
][
'categories'
]
=
array
(
'url'
=>
qa_path_html
(
'categories'
),
'label'
=>
qa_lang_html
(
'main/nav_categories'
),
'select
paths
'
=>
array
(
'categories$'
,
'categories/'
),
'select
ed_on
'
=>
array
(
'categories$'
,
'categories/'
),
);
if
(
qa_opt
(
'nav_users'
))
$qa_content
[
'navigation'
][
'main'
][
'user'
]
=
array
(
'url'
=>
qa_path_html
(
'users'
),
'label'
=>
qa_lang_html
(
'main/nav_users'
),
'select
paths
'
=>
array
(
'users$'
,
'users/'
,
'user/'
),
'select
ed_on
'
=>
array
(
'users$'
,
'users/'
,
'user/'
),
);
// Only the 'level' permission error prevents the menu option being shown - others reported on qa-page-ask.php
...
...
@@ -618,7 +618,7 @@
$qa_content
[
'navigation'
][
'main'
][
'admin'
]
=
array
(
'url'
=>
qa_path_html
(
'admin'
),
'label'
=>
qa_lang_html
(
'main/nav_admin'
),
'select
paths
'
=>
array
(
'admin/'
),
'select
ed_on
'
=>
array
(
'admin/'
),
);
...
...
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