Prefer string $file over 1-element array in script()

The string syntax is more obvious. There should be one (and preferably
only one) way of doing things.

Signed-off-by: François Freitag <mail@franek.fr>
This commit is contained in:
François Freitag 2021-05-18 09:22:07 +02:00
parent 83330b8c4c
commit d887851183
7 changed files with 7 additions and 21 deletions

View File

@ -21,9 +21,7 @@
* *
*/ */
script('dav', [ script('dav', 'settings-admin-caldav');
'settings-admin-caldav'
]);
/** @var \OCP\IL10N $l */ /** @var \OCP\IL10N $l */
/** @var array $_ */ /** @var array $_ */

View File

@ -22,9 +22,7 @@ declare(strict_types=1);
* *
*/ */
script('settings', [ script('settings', 'vue-settings-personal-security');
'vue-settings-personal-security',
]);
?> ?>

View File

@ -22,9 +22,7 @@ declare(strict_types=1);
* *
*/ */
script('settings', [ script('settings', 'vue-settings-personal-webauthn');
'vue-settings-personal-webauthn',
]);
?> ?>

View File

@ -19,9 +19,7 @@
* *
*/ */
script('core', [ script('core', 'dist/systemtags');
'dist/systemtags',
]);
script('systemtags', 'admin'); script('systemtags', 'admin');
style('systemtags', 'settings'); style('systemtags', 'settings');

View File

@ -1,8 +1,6 @@
<?php /** @var \OCP\IL10N $l */ ?> <?php /** @var \OCP\IL10N $l */ ?>
<?php <?php
script('user_ldap', [ script('user_ldap', 'renewPassword');
'renewPassword',
]);
style('user_ldap', 'renewPassword'); style('user_ldap', 'renewPassword');
?> ?>

View File

@ -40,9 +40,7 @@ class LoadAdditionalSettingsScriptsListener implements IEventListener {
class_exists(Template::class, true); class_exists(Template::class, true);
} }
script('core', [ script('core', 'dist/systemtags');
'dist/systemtags',
]);
script(Application::APP_ID, [ script(Application::APP_ID, [
'workflowengine', 'workflowengine',

View File

@ -1,7 +1,5 @@
<?php <?php
script('core', [ script('core', 'dist/install');
'dist/install'
]);
?> ?>
<input type='hidden' id='hasMySQL' value='<?php p($_['hasMySQL']) ?>'> <input type='hidden' id='hasMySQL' value='<?php p($_['hasMySQL']) ?>'>
<input type='hidden' id='hasSQLite' value='<?php p($_['hasSQLite']) ?>'> <input type='hidden' id='hasSQLite' value='<?php p($_['hasSQLite']) ?>'>