mirror of
https://github.com/nextcloud/server.git
synced 2026-03-18 08:34:10 -04:00
Merge pull request #12009 from owncloud/make-optional
Make second argument optional
This commit is contained in:
commit
e53354bfd7
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue