Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
e53354bf
Commit
e53354bf
authored
Nov 06, 2014
by
Morris Jobke
Browse files
Merge pull request #12009 from owncloud/make-optional
Make second argument optional
parents
0c230fb5
20cd9a13
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/private/template/functions.php
View file @
e53354bf
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment