diff --git a/include/plugin.php b/include/plugin.php index 90e21bcc7..988433dce 100644 --- a/include/plugin.php +++ b/include/plugin.php @@ -930,13 +930,15 @@ function get_theme_screenshot($theme) { } /** - * @brief add CSS to \ + * Add stylesheet to \ section. * - * @param string $src - * @param string $media change media attribute (default to 'screen') + * @param string $urlpath + * The URL path relative to the domain to the stylesheet to add. + * @param string $media + * Media attribute for the stylesheet (default to 'screen') */ -function head_add_css($src, $media = 'screen') { - App::$css_sources[] = array($src, $media); +function head_add_css($urlpath, $media = 'screen'): void { + App::$css_sources[] = array($urlpath, $media); } function head_remove_css($src, $media = 'screen') {