mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-68819 core_contentbank: "Upload" button is not localized.
This commit is contained in:
parent
71965a8572
commit
937c7e5f0c
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ if (has_capability('moodle/contentbank:upload', $context)) {
|
||||||
$accepted = $cb->get_supported_extensions_as_string($context);
|
$accepted = $cb->get_supported_extensions_as_string($context);
|
||||||
if (!empty($accepted)) {
|
if (!empty($accepted)) {
|
||||||
$importurl = new moodle_url('/contentbank/upload.php', ['contextid' => $contextid]);
|
$importurl = new moodle_url('/contentbank/upload.php', ['contextid' => $contextid]);
|
||||||
$toolbar[] = array('name' => 'Upload', 'link' => $importurl, 'icon' => 'i/upload');
|
$toolbar[] = array('name' => get_string('upload', 'contentbank'), 'link' => $importurl, 'icon' => 'i/upload');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue