1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/17050] Remove trailing slash from generated css includes

PHPBB3-17050
This commit is contained in:
Marc Alexander
2022-10-21 21:40:44 +02:00
parent 2126738598
commit 7017c73156
2 changed files with 9 additions and 9 deletions

View File

@@ -62,27 +62,27 @@ class assets_bag
}
/**
* Returns the HTML code to includes all css assets
* Returns the HTML code to include all css assets
*
* @return string
*/
public function get_stylesheets_content()
public function get_stylesheets_content(): string
{
$output = '';
foreach ($this->stylesheets as $stylesheet)
{
$output .= "<link href=\"{$stylesheet->get_url()}\" rel=\"stylesheet\" media=\"screen\" />\n";
$output .= "<link href=\"{$stylesheet->get_url()}\" rel=\"stylesheet\" media=\"screen\">\n";
}
return $output;
}
/**
* Returns the HTML code to includes all js assets
* Returns the HTML code to include all js assets
*
* @return string
*/
public function get_scripts_content()
public function get_scripts_content(): string
{
$output = '';
foreach ($this->scripts as $script)