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:
+1
-5
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user