From 69c14bbd3e12f9e0477984d84fdd9dedf91587f7 Mon Sep 17 00:00:00 2001 From: David Mudrak Date: Tue, 27 Apr 2010 22:31:29 +0000 Subject: [PATCH] MDL-15252 Got rid of yet another dependency on get_string() returning [[...]] Actually none of current blocks defined the checked string 'editinga' so it does not break BC if get_string('blockconfiga', 'moodle') is used all the time. --- lib/blocklib.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/blocklib.php b/lib/blocklib.php index 5ed138f080b..3dd39505494 100644 --- a/lib/blocklib.php +++ b/lib/blocklib.php @@ -1164,11 +1164,7 @@ class block_manager { redirect($this->page->url); } else { - $strheading = get_string('editinga', $block->name()); - if (strpos($strheading, '[[') === 0) { - $strheading = get_string('blockconfiga', 'moodle', $block->get_title()); - } - + $strheading = get_string('blockconfiga', 'moodle', $block->get_title()); $editpage->set_title($strheading); $editpage->set_heading($strheading); $editpage->navbar->add($strheading);