Commit 0aaa1c80 authored by alexpott's avatar alexpott

Issue #2298039 followup by lauriii, sqndr: Remove all PNG fallbacks for SVG.

parent 36dd5afc
......@@ -61,28 +61,28 @@ protected function buildStatusImageMap() {
// Initialize image mapping property.
$image_pass = array(
'#theme' => 'image',
'#uri' => 'core/misc/icons/73b355/check.png',
'#uri' => 'core/misc/icons/73b355/check.svg',
'#width' => 18,
'#height' => 18,
'#alt' => $this->t('Pass'),
);
$image_fail = array(
'#theme' => 'image',
'#uri' => 'core/misc/icons/ea2800/error.png',
'#uri' => 'core/misc/icons/ea2800/error.svg',
'#width' => 18,
'#height' => 18,
'#alt' => $this->t('Fail'),
);
$image_exception = array(
'#theme' => 'image',
'#uri' => 'core/misc/icons/e29700/warning.png',
'#uri' => 'core/misc/icons/e29700/warning.svg',
'#width' => 18,
'#height' => 18,
'#alt' => $this->t('Exception'),
);
$image_debug = array(
'#theme' => 'image',
'#uri' => 'core/misc/icons/e29700/warning.png',
'#uri' => 'core/misc/icons/e29700/warning.svg',
'#width' => 18,
'#height' => 18,
'#alt' => $this->t('Debug'),
......
......@@ -348,7 +348,7 @@ function getTestResults() {
$assertion['file'] = $this->asText($row->td[2]);
$assertion['line'] = $this->asText($row->td[3]);
$assertion['function'] = $this->asText($row->td[4]);
$ok_url = file_create_url('core/misc/icons/73b355/check.png');
$ok_url = file_create_url('core/misc/icons/73b355/check.svg');
$assertion['status'] = ($row->td[5]->img['src'] == $ok_url) ? 'Pass' : 'Fail';
$results['assertions'][] = $assertion;
}
......
......@@ -320,25 +320,25 @@ function template_preprocess_update_project_status(&$variables) {
switch ($project['status']) {
case UPDATE_CURRENT:
$uri = 'core/misc/icons/73b355/check.png';
$uri = 'core/misc/icons/73b355/check.svg';
$text = t('Ok');
break;
case UPDATE_UNKNOWN:
case UPDATE_FETCH_PENDING:
case UPDATE_NOT_FETCHED:
$uri = 'core/misc/icons/e29700/warning.png';
$uri = 'core/misc/icons/e29700/warning.svg';
$text = t('Warning');
break;
case UPDATE_NOT_SECURE:
case UPDATE_REVOKED:
case UPDATE_NOT_SUPPORTED:
$uri = 'core/misc/icons/ea2800/error.png';
$uri = 'core/misc/icons/ea2800/error.svg';
$text = t('Error');
break;
case UPDATE_NOT_CHECKED:
case UPDATE_NOT_CURRENT:
default:
$uri = 'core/misc/icons/e29700/warning.png';
$uri = 'core/misc/icons/e29700/warning.svg';
$text = t('Warning');
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment