Commit 841bf514 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1497820: Getting the license icons without passing extension"

parents 6a5939ca ff63c5a8
......@@ -323,7 +323,7 @@ function render_license($artefact) {
*/
function license_icon_url($icon) {
global $THEME;
if (preg_match('/^license:([a-z_-]+\.png)$/', $icon, $m)) {
if (preg_match('/^license:([a-z_-]+)\.png$/', $icon, $m)) {
$icon = $THEME->get_image_url('license/' . $m[1]);
}
return $icon;
......
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