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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user