1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-06 14:35:56 +02:00

Merge branch '3.3.x'

This commit is contained in:
Marc Alexander 2022-10-22 11:34:57 +02:00
commit 94d7d4fbcb
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995
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)

View File

@ -93,19 +93,19 @@ class phpbb_template_template_includecss_test extends phpbb_template_template_te
*/
array(
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('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('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('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">',
),
);
}