summaryrefslogtreecommitdiffstats
path: root/lib/private/template/functions.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-11-06 19:43:11 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-11-06 19:43:11 +0100
commite53354bfd7895e517f2b91064aae8680d9db19cd (patch)
tree5857c9512e3c7d6751408ecb258af43b3eca9c2b /lib/private/template/functions.php
parent0c230fb57e400efa9e0de7135a7cdbc857fe98d3 (diff)
parent20cd9a134f0a8bfedd9b4d72a3ad1ef2821f2477 (diff)
downloadnextcloud-server-e53354bfd7895e517f2b91064aae8680d9db19cd.tar.gz
nextcloud-server-e53354bfd7895e517f2b91064aae8680d9db19cd.zip
Merge pull request #12009 from owncloud/make-optional
Make second argument optional
Diffstat (limited to 'lib/private/template/functions.php')
-rw-r--r--lib/private/template/functions.php4
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);