Make second argument optional

Equivalent to addVendorScript und addScript from OC_Util
This commit is contained in:
Lukas Reschke 2014-11-06 18:17:21 +01:00
parent efe209784e
commit 20cd9a134f
1 changed files with 2 additions and 2 deletions

View File

@ -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);