Skip to content

Commit bbf62aa

Browse files
committed
refactor: more html_helper with solidus
1 parent 847b8de commit bbf62aa

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

system/Helpers/html_helper.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,7 @@ function link_tag($href = '', string $rel = 'stylesheet', string $type = 'text/c
241241
}
242242

243243
if (! preg_match('#^([a-z]+:)?//#i', $href)) {
244-
if ($indexPage === true) {
245-
$attributes['href'] = site_url($href);
246-
} else {
247-
$attributes['href'] = slash_item('baseURL') . $href;
248-
}
244+
$attributes['href'] = $indexPage ? site_url($href) : slash_item('baseURL') . $href;
249245
} else {
250246
$attributes['href'] = $href;
251247
}

0 commit comments

Comments
 (0)