Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
a52d3be3
Commit
a52d3be3
authored
Sep 06, 2012
by
Hugh Davenport
Committed by
Gerrit Code Review
Sep 06, 2012
Browse files
Merge "Fix institution menu (Bug #1045234)"
parents
52c77a4c
6bd2b12a
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/lang/en.utf8/admin.php
View file @
a52d3be3
...
...
@@ -271,6 +271,7 @@ $string['groupstatstabletitle'] = 'Biggest groups';
$string
[
'viewstatstabletitle'
]
=
'Most popular pages'
;
$string
[
'exportstatsascsv'
]
=
'Export statistics in CSV format'
;
$string
[
'nostats'
]
=
'No statistics available'
;
$string
[
'site'
]
=
'Site'
;
// Institution statistics
$string
[
'statistics'
]
=
'Statistics'
;
...
...
htdocs/lib/web.php
View file @
a52d3be3
...
...
@@ -2047,8 +2047,9 @@ function admin_nav() {
* @return $adminnav a data structure containing the admin navigation
*/
function
institutional_admin_nav
()
{
global
$USER
;
ret
urn
array
(
$
ret
=
array
(
'configusers'
=>
array
(
'path'
=>
'configusers'
,
'url'
=>
'admin/users/search.php'
,
...
...
@@ -2170,6 +2171,22 @@ function institutional_admin_nav() {
'weight'
=>
110
,
),
);
if
(
$USER
->
get
(
'staff'
))
{
$ret
[
'adminhome'
]
=
array
(
'path'
=>
'adminhome'
,
'url'
=>
'admin/statistics.php'
,
'title'
=>
get_string
(
'site'
,
'admin'
),
'weight'
=>
40
,
);
$ret
[
'adminhome/statistics'
]
=
array
(
'path'
=>
'adminhome/statistics'
,
'url'
=>
'admin/statistics.php'
,
'title'
=>
get_string
(
'statistics'
,
'admin'
),
'weight'
=>
10
,
);
};
return
$ret
;
}
...
...
Write
Preview
Supports
Markdown
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