MDL-8268 fixed block get_string, patch by Mark Nielsen; backported from HEAD
This commit is contained in:
+1
-1
@@ -3092,7 +3092,7 @@ function get_component_string($component, $contextlevel) {
|
||||
break;
|
||||
|
||||
case CONTEXT_BLOCK:
|
||||
$string = get_string('blockname', 'block_'.$component.'.php');
|
||||
$string = get_string('blockname', 'block_'.basename($component));
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user