diff options
Diffstat (limited to 'include/controls.php')
-rwxr-xr-x | include/controls.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/controls.php b/include/controls.php index e64a90a8b..012bcf76c 100755 --- a/include/controls.php +++ b/include/controls.php @@ -233,10 +233,12 @@ function print_feed_cat_select($id, $default_id, } } -function stylesheet_tag($filename) { +function stylesheet_tag($filename, $id = false) { $timestamp = filemtime($filename); - return "<link rel=\"stylesheet\" type=\"text/css\" href=\"$filename?$timestamp\"/>\n"; + $id_part = $id ? "id=\"$id\"" : ""; + + return "<link rel=\"stylesheet\" $id_part type=\"text/css\" href=\"$filename?$timestamp\"/>\n"; } function javascript_tag($filename) { |