Permalink
Browse files

MDL-27829 blocks: made the ability to add a block to all site adminis…

…tration pages work
  • Loading branch information...
1 parent 346a32a commit 2f9bdadfd23321951a7fbf7a33ddc5af57c5ef74 @andyjdavis andyjdavis committed Jul 1, 2011
Showing with 6 additions and 6 deletions.
  1. +2 −2 admin/lib.php
  2. +2 −2 blocks/edit_form.php
  3. +2 −2 lang/en/pagetype.php
View
@@ -32,8 +32,8 @@
*/
function admin_page_type_list($pagetype, $parentcontext, $currentcontext) {
$array = array(
- 'admin-setting-*' => get_string('page-admin-setting-x', 'pagetype'),
- $pagetype => get_string('page-admin-setting', 'pagetype')
+ 'admin-*' => get_string('page-admin-x', 'pagetype'),
+ $pagetype => get_string('page-admin-current', 'pagetype')
);
return $array;
}
View
@@ -99,8 +99,8 @@ function definition() {
$contextoptions = array();
if ( ($parentcontext->contextlevel == CONTEXT_COURSE && $parentcontext->instanceid == SITEID) ||
($parentcontext->contextlevel == CONTEXT_SYSTEM)) { // Home page
- if ($bits[0] == 'tag' || ($bits[0] == 'admin' && $bits[1] == 'setting')) {
- // tag and admin settings always use system context
+ if ($bits[0] == 'tag' || $bits[0] == 'admin') {
+ // tag and admin pages always use system context
// the contexts options don't make differences, so we use
// page type patterns only
$mform->addElement('hidden', 'bui_contexts', BUI_CONTEXTS_ENTIRE_SITE);
View
@@ -23,8 +23,8 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-$string['page-admin-setting'] = 'The current admin setting page';
-$string['page-admin-setting-x'] = 'Any admin setting page';
+$string['page-admin-current'] = 'The current site administration page';
+$string['page-admin-x'] = 'Any site administration page';
$string['page-course-view-x'] = 'Any type of course main page';
$string['page-course-x'] = 'Any course page';
$string['page-course-report-x'] = 'Any course report';

0 comments on commit 2f9bdad

Please sign in to comment.