From 81e6329c049e93dcda4b8af2b6cdecdebf8b574d Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 6 Nov 2014 21:26:50 +0100 Subject: second parameter in template shortcuts script() and style() is optional --- lib/private/template/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/private') diff --git a/lib/private/template/functions.php b/lib/private/template/functions.php index e9f9f39c191..4172d47ba61 100644 --- a/lib/private/template/functions.php +++ b/lib/private/template/functions.php @@ -29,7 +29,7 @@ function print_unescaped($string) { * @param string|string[] $file the filename, * if an array is given it will add all scripts */ -function script($app, $file) { +function script($app, $file = null) { if(is_array($file)) { foreach($file as $f) { OC_Util::addScript($app, $f); @@ -61,7 +61,7 @@ function vendor_script($app, $file = null) { * @param string|string[] $file the filename, * if an array is given it will add all styles */ -function style($app, $file) { +function style($app, $file = null) { if(is_array($file)) { foreach($file as $f) { OC_Util::addStyle($app, $f); -- cgit v1.2.3