diff --git a/admin/lib.php b/admin/lib.php index 7b4331961ca..ac698737e0a 100644 --- a/admin/lib.php +++ b/admin/lib.php @@ -35,5 +35,16 @@ function admin_page_type_list($pagetype, $parentcontext, $currentcontext) { 'admin-*' => get_string('page-admin-x', 'pagetype'), $pagetype => get_string('page-admin-current', 'pagetype') ); + // Add the missing * (any page) option for them. MDL-30340 + // TODO: These pages are really 'pagetype-varying' - MDL-30564 - + // and some day we should stop behaving that way, so proper pagetypes + // can be specified for it (like course-category-* or so). + // Luckly... the option we are introducing '*' is independent + // of that varying behavior, so will work. + if ($pagetype == 'admin-course-category') { + $array += array( + '*' => get_string('page-x', 'pagetype') + ); + } return $array; -} \ No newline at end of file +}