Commit cb357930 authored by Jan Helke's avatar Jan Helke Committed by Christian Kuhn
Browse files

[TASK] Remove last usage of two icons from gfx folder and remove files

Remove the last two usages of gfx/icon_note.gif and
gfx/icon_warning2.gif after the merge of
https://forge.typo3.org/issues/65992 .
These files are only used in TimeTracker.

TimeTracker is rendered in the AdminPanel, go to TypoScript accordion and
select "Display Messages"

Resolves: #66250
Related: #65992
Releases: master
Change-Id: I8d0485d3d4a66a41bce26a6c0a38c978dee52b88
Reviewed-on: http://review.typo3.org/38440


Reviewed-by: Daniel Maier's avatarDaniel Maier <dani-maier@gmx.de>
Tested-by: Daniel Maier's avatarDaniel Maier <dani-maier@gmx.de>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 42ce1636
......@@ -13,6 +13,7 @@ namespace TYPO3\CMS\Core\TimeTracker;
*
* The TYPO3 project - inspiring people to share!
*/
use TYPO3\CMS\Backend\Utility\IconUtility;
/**
* Frontend Timetracking functions
......@@ -127,9 +128,9 @@ class TimeTracker {
);
$this->wrapIcon = array(
0 => '',
1 => '<img src="' . TYPO3_mainDir . 'gfx/icon_note.gif" width="18" height="16" align="absmiddle" alt="" />',
2 => '<img src="' . TYPO3_mainDir . 'gfx/icon_warning2.gif" width="18" height="16" align="absmiddle" alt="" />',
3 => '<img src="' . TYPO3_mainDir . 'gfx/icon_fatalerror.gif" width="18" height="16" align="absmiddle" alt="" />'
1 => 'actions-document-info',
2 => 'status-dialog-warning',
3 => 'status-dialog-error'
);
$this->starttime = $this->getMilliseconds();
}
......@@ -189,7 +190,7 @@ class TimeTracker {
if (strlen($content) > 30) {
$placeholder = '<br /><img src="' . TYPO3_mainDir . 'clear.gif" width="300" height="1" alt="" />';
}
$this->tsStackLog[$k]['message'][] = $this->wrapIcon[$num] . $this->wrapError[$num][0] . htmlspecialchars($content) . $this->wrapError[$num][1] . $placeholder;
$this->tsStackLog[$k]['message'][] = IconUtility::getSpriteIcon($this->wrapIcon[$num]) . $this->wrapError[$num][0] . htmlspecialchars($content) . $this->wrapError[$num][1] . $placeholder;
}
/**
......
......@@ -57,6 +57,15 @@
.fa-arrows:before {
content: "\f047";
}
.fa-exclamation-circle:before {
content: "\f06a";
}
.fa-exclamation-triangle:before {
content: "\f071";
}
.fa-info-circle:before {
content: "\f05a";
}
.t3-icon {
display: inline-block;
position: relative;
......
Supports Markdown
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