Skip to content

Commit

Permalink
Fix Trailing slash on void elements has no effect error
Browse files Browse the repository at this point in the history
  • Loading branch information
puleeno committed Jan 6, 2024
1 parent 91d5d7b commit 27b8322
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/Core/Assets/CascadingStyleSheets.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function renderHtml()
echo HookManager::applyFilters(
'print_css_html',
sprintf(
'<link id="%2$s-css" rel="stylesheet" href="%1$s" type="text/css" />',
'<link id="%2$s-css" rel="stylesheet" href="%1$s" type="text/css">',
HookManager::applyFilters("asset_css_url", $this->getUrl(
Env::get("COMPRESSED_ASSETS", Env::get("DEBUG") === false)
), $this->id, $this),
Expand Down
4 changes: 2 additions & 2 deletions app/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,11 @@ protected function setupAssets()
$assetManager = AssetManager::getInstance();
$version = $this->container->get('version');
HookManager::addAction('head', function () use ($version) {
echo sprintf('<meta name="generator" content="Puleeno CMS %s" />', $version) . PHP_EOL;
echo sprintf('<meta name="generator" content="Puleeno CMS %s">', $version) . PHP_EOL;
}, 0);
HookManager::addAction('head', function () {
$faviconUrl = HookManager::applyFilters('favicon_url', '/assets/favicon.ico');
echo sprintf(str_repeat("\t", 2) . '<link rel="icon" type="image/x-icon" href="%s" />', $faviconUrl) . PHP_EOL;
echo sprintf(str_repeat("\t", 2) . '<link rel="icon" type="image/x-icon" href="%s">', $faviconUrl) . PHP_EOL;
});

// Setup assets in <head> tag
Expand Down
2 changes: 1 addition & 1 deletion extensions/layout

0 comments on commit 27b8322

Please sign in to comment.