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.
This commit is contained in:
David Mudrak
2010-04-27 22:31:29 +00:00
parent 706d6648d9
commit 69c14bbd3e
+1 -5
View File
@@ -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);