Commit fd4e2207 authored by webchick's avatar webchick

Issue #2207767 by temaruk, Coornail, rteijeiro, alexrayu, LewisNyman: Replace...

Issue #2207767 by temaruk, Coornail, rteijeiro, alexrayu, LewisNyman: Replace watchdog icons with Libricons.
parent 29bfb33e
......@@ -51,28 +51,28 @@ public function __construct(Connection $database) {
// Initialize image mapping property.
$image_pass = array(
'#theme' => 'image',
'#uri' => 'core/misc/watchdog-ok.png',
'#uri' => 'core/misc/icons/73b355/check.png',
'#width' => 18,
'#height' => 18,
'#alt' => $this->t('Pass'),
);
$image_fail = array(
'#theme' => 'image',
'#uri' => 'core/misc/watchdog-error.png',
'#uri' => 'core/misc/icons/ea2800/error.png',
'#width' => 18,
'#height' => 18,
'#alt' => $this->t('Fail'),
);
$image_exception = array(
'#theme' => 'image',
'#uri' => 'core/misc/watchdog-warning.png',
'#uri' => 'core/misc/icons/e29700/warning.png',
'#width' => 18,
'#height' => 18,
'#alt' => $this->t('Exception'),
);
$image_debug = array(
'#theme' => 'image',
'#uri' => 'core/misc/watchdog-warning.png',
'#uri' => 'core/misc/icons/e29700/warning.png',
'#width' => 18,
'#height' => 18,
'#alt' => $this->t('Debug'),
......
......@@ -7,6 +7,7 @@
namespace Drupal\simpletest\Tests;
use Drupal\Core\Database\Driver\pgsql\Select;
use Drupal\simpletest\WebTestBase;
class SimpleTestTest extends WebTestBase {
......@@ -298,7 +299,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/watchdog-ok.png');
$ok_url = file_create_url('core/misc/icons/73b355/check.png');
$assertion['status'] = ($row->td[5]->img['src'] == $ok_url) ? 'Pass' : 'Fail';
$results['assertions'][] = $assertion;
}
......
......@@ -45,28 +45,28 @@ function theme_update_report($variables) {
switch ($project['status']) {
case UPDATE_CURRENT:
$class = 'ok';
$uri = 'core/misc/watchdog-ok.png';
$uri = 'core/misc/icons/73b355/check.png';
$text = t('ok');
break;
case UPDATE_UNKNOWN:
case UPDATE_FETCH_PENDING:
case UPDATE_NOT_FETCHED:
$class = 'unknown';
$uri = 'core/misc/watchdog-warning.png';
$uri = 'core/misc/icons/e29700/warning.png';
$text = t('warning');
break;
case UPDATE_NOT_SECURE:
case UPDATE_REVOKED:
case UPDATE_NOT_SUPPORTED:
$class = 'error';
$uri = 'core/misc/watchdog-error.png';
$uri = 'core/misc/icons/ea2800/error.png';
$text = t('error');
break;
case UPDATE_NOT_CHECKED:
case UPDATE_NOT_CURRENT:
default:
$class = 'warning';
$uri = 'core/misc/watchdog-warning.png';
$uri = 'core/misc/icons/e29700/warning.png';
$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