diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-11-06 21:26:50 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-11-06 21:26:50 +0100 |
commit | 81e6329c049e93dcda4b8af2b6cdecdebf8b574d (patch) | |
tree | abc2d838a9074bb1d126959efe1f74b38ab486fc /lib | |
parent | e53354bfd7895e517f2b91064aae8680d9db19cd (diff) | |
download | nextcloud-server-81e6329c049e93dcda4b8af2b6cdecdebf8b574d.tar.gz nextcloud-server-81e6329c049e93dcda4b8af2b6cdecdebf8b574d.zip |
second parameter in template shortcuts script() and style() is optional
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/template/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
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); |