MDL-40369 theme: Fix core using deprecated icons
This commit is contained in:
+2
-2
@@ -48,13 +48,13 @@ YUI.add('moodle-tool_installaddon-permcheck', function(Y) {
|
||||
var resultline = Y.one('#tool_installaddon_installfromzip_permcheck');
|
||||
if (resultline) {
|
||||
if (status === 'success') {
|
||||
resultline.setContent('<span class="success"><img src="' + M.util.image_url('i/tick_green_big') + '" /> ' +
|
||||
resultline.setContent('<span class="success"><img src="' + M.util.image_url('i/valid') + '" /> ' +
|
||||
msg + '</span>');
|
||||
} else if (status === 'progress') {
|
||||
resultline.setContent('<span class="progress"><img src="' + M.cfg.loadingicon + '" /> ' +
|
||||
msg + '</span>');
|
||||
} else {
|
||||
resultline.setContent('<span class="error"><img src="' + M.util.image_url('i/cross_red_big') + '" /> ' +
|
||||
resultline.setContent('<span class="error"><img src="' + M.util.image_url('i/invalid') + '" /> ' +
|
||||
msg + '</span>');
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -527,7 +527,7 @@ class core_badges_renderer extends plugin_renderer_base {
|
||||
$description = $badge->description;
|
||||
$criteria = self::print_badge_criteria($badge);
|
||||
if ($badge->dateissued) {
|
||||
$icon = new pix_icon('i/tick_green_big',
|
||||
$icon = new pix_icon('i/valid',
|
||||
get_string('dateearned', 'badges',
|
||||
userdate($badge->dateissued, get_string('strftimedatefullshort', 'core_langconfig'))));
|
||||
$badgeurl = new moodle_url('/badges/badge.php', array('hash' => $badge->uniquehash));
|
||||
|
||||
@@ -223,7 +223,7 @@ foreach ($rs as $template) {
|
||||
$actions = array();
|
||||
if ($controller->is_shared_template()) {
|
||||
$actions[] = $output->pick_action_icon(new moodle_url($PAGE->url, array('pick' => $template->id)),
|
||||
get_string('templatepick', 'core_grading'), 'i/tick_green_big', 'pick template');
|
||||
get_string('templatepick', 'core_grading'), 'i/valid', 'pick template');
|
||||
if ($canmanage or ($canshare and ($template->usercreated == $USER->id))) {
|
||||
//$actions[] = $output->pick_action_icon(new moodle_url($PAGE->url, array('edit' => $template->id)),
|
||||
// get_string('templateedit', 'core_grading'), 'i/edit', 'edit');
|
||||
@@ -232,7 +232,7 @@ foreach ($rs as $template) {
|
||||
}
|
||||
} else if ($controller->is_own_form()) {
|
||||
$actions[] = $output->pick_action_icon(new moodle_url($PAGE->url, array('pick' => $template->id)),
|
||||
get_string('templatepickownform', 'core_grading'), 'i/tick_green_big', 'pick ownform');
|
||||
get_string('templatepickownform', 'core_grading'), 'i/valid', 'pick ownform');
|
||||
}
|
||||
$out .= $output->box(join(' ', $actions), 'template-actions');
|
||||
$out .= $output->box($controller->get_formatted_description(), 'template-description');
|
||||
|
||||
Reference in New Issue
Block a user