diff --git a/lib/private/template/functions.php b/lib/private/template/functions.php
index ca0c27a80780eaf0822f05326ac1be8a0734b86a..e9f9f39c191dfb4a6fc71780aade251339263acd 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);