diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-11-06 18:17:21 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-11-06 18:17:21 +0100 |
commit | 20cd9a134f0a8bfedd9b4d72a3ad1ef2821f2477 (patch) | |
tree | 30ac0ac9733f9dd05a765c971dfcadc0a21a7073 /lib/private/template | |
parent | efe209784ee1328556b51d69d3d5df870607fc91 (diff) | |
download | nextcloud-server-20cd9a134f0a8bfedd9b4d72a3ad1ef2821f2477.tar.gz nextcloud-server-20cd9a134f0a8bfedd9b4d72a3ad1ef2821f2477.zip |
Make second argument optional
Equivalent to addVendorScript und addScript from OC_Util
Diffstat (limited to 'lib/private/template')
-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 ca0c27a8078..e9f9f39c191 100644 --- a/lib/private/template/functions.php +++ b/lib/private/template/functions.php @@ -45,7 +45,7 @@ function script($app, $file) { * @param string|string[] $file the filename, * if an array is given it will add all scripts */ -function vendor_script($app, $file) { +function vendor_script($app, $file = null) { if(is_array($file)) { foreach($file as $f) { OC_Util::addVendorScript($app, $f); @@ -77,7 +77,7 @@ function style($app, $file) { * @param string|string[] $file the filename, * if an array is given it will add all styles */ -function vendor_style($app, $file) { +function vendor_style($app, $file = null) { if(is_array($file)) { foreach($file as $f) { OC_Util::addVendorStyle($app, $f); |