Commit e53354bf authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #12009 from owncloud/make-optional

Make second argument optional
parents 0c230fb5 20cd9a13
...@@ -45,7 +45,7 @@ function script($app, $file) { ...@@ -45,7 +45,7 @@ function script($app, $file) {
* @param string|string[] $file the filename, * @param string|string[] $file the filename,
* if an array is given it will add all scripts * 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)) { if(is_array($file)) {
foreach($file as $f) { foreach($file as $f) {
OC_Util::addVendorScript($app, $f); OC_Util::addVendorScript($app, $f);
...@@ -77,7 +77,7 @@ function style($app, $file) { ...@@ -77,7 +77,7 @@ function style($app, $file) {
* @param string|string[] $file the filename, * @param string|string[] $file the filename,
* if an array is given it will add all styles * 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)) { if(is_array($file)) {
foreach($file as $f) { foreach($file as $f) {
OC_Util::addVendorStyle($app, $f); OC_Util::addVendorStyle($app, $f);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment