mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge pull request #6422 from marc1706/ticket/17050
[ticket/17050] Remove trailing slash from generated css includes
This commit is contained in:
commit
67c41633a2
2 changed files with 9 additions and 9 deletions
|
@ -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
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function get_stylesheets_content()
|
public function get_stylesheets_content(): string
|
||||||
{
|
{
|
||||||
$output = '';
|
$output = '';
|
||||||
foreach ($this->stylesheets as $stylesheet)
|
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;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the HTML code to includes all js assets
|
* Returns the HTML code to include all js assets
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function get_scripts_content()
|
public function get_scripts_content(): string
|
||||||
{
|
{
|
||||||
$output = '';
|
$output = '';
|
||||||
foreach ($this->scripts as $script)
|
foreach ($this->scripts as $script)
|
||||||
|
|
|
@ -95,19 +95,19 @@ class phpbb_template_template_includecss_test extends phpbb_template_template_te
|
||||||
*/
|
*/
|
||||||
array(
|
array(
|
||||||
array('TEST' => 1),
|
array('TEST' => 1),
|
||||||
'<link href="tests/template/templates/child_only.css?assets_version=1" rel="stylesheet" media="screen" />',
|
'<link href="tests/template/templates/child_only.css?assets_version=1" rel="stylesheet" media="screen">',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
array('TEST' => 2),
|
array('TEST' => 2),
|
||||||
'<link href="tests/template/parent_templates/parent_only.css?assets_version=1" rel="stylesheet" media="screen" />',
|
'<link href="tests/template/parent_templates/parent_only.css?assets_version=1" rel="stylesheet" media="screen">',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
array('TEST' => 3),
|
array('TEST' => 3),
|
||||||
'<link href="tests/template/ext/include/css/styles/all/theme/test.css?assets_version=1" rel="stylesheet" media="screen" />',
|
'<link href="tests/template/ext/include/css/styles/all/theme/test.css?assets_version=1" rel="stylesheet" media="screen">',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
array('TEST' => 4),
|
array('TEST' => 4),
|
||||||
'<link href="tests/template/ext/include/css/styles/all/theme/child_only.css?assets_version=1" rel="stylesheet" media="screen" />',
|
'<link href="tests/template/ext/include/css/styles/all/theme/child_only.css?assets_version=1" rel="stylesheet" media="screen">',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue