From 20cd9a134f0a8bfedd9b4d72a3ad1ef2821f2477 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Thu, 6 Nov 2014 18:17:21 +0100 Subject: [PATCH] Make second argument optional Equivalent to addVendorScript und addScript from OC_Util --- lib/private/template/functions.php | 4 ++-- 1 file 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); -- 2.39.5