From f2a7fcf8220ef497c8f39f0c9ec3175757f53128 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 9 Aug 2012 19:09:55 -0700 Subject: more theme modularisation and css/js management --- include/plugin.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'include/plugin.php') diff --git a/include/plugin.php b/include/plugin.php index a6780d701..c9490eb8a 100644 --- a/include/plugin.php +++ b/include/plugin.php @@ -406,8 +406,7 @@ function upgrade_bool_message($bbcode = false) { function head_add_css($src,$media = 'screen') { - get_app()->css_sources[] = array($src,$type); - + get_app()->css_sources[] = array($src,$media); } function head_get_css() { @@ -430,7 +429,7 @@ function format_css_if_exists($source) { elseif(file_exists('view/css/' . $source[0])) $path = 'view/css/' . $source[0]; if($path) - return ''; + return '' . "\r\n"; } @@ -459,7 +458,7 @@ function format_js_if_exists($source) { elseif(file_exists('view/js/' . $source)) $path = 'view/js/' . $source[0]; if($path) - return '' . "\r\n" ; } -- cgit v1.2.3