Commit a52d3be3 authored by Hugh Davenport's avatar Hugh Davenport Committed by Gerrit Code Review
Browse files

Merge "Fix institution menu (Bug #1045234)"

parents 52c77a4c 6bd2b12a
......@@ -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';
......
......@@ -2047,8 +2047,9 @@ function admin_nav() {
* @return $adminnav a data structure containing the admin navigation
*/
function institutional_admin_nav() {
global $USER;
return 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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment