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:
parent
83330b8c4c
commit
d887851183
|
@ -21,9 +21,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
script('dav', [
|
||||
'settings-admin-caldav'
|
||||
]);
|
||||
script('dav', 'settings-admin-caldav');
|
||||
|
||||
/** @var \OCP\IL10N $l */
|
||||
/** @var array $_ */
|
||||
|
|
|
@ -22,9 +22,7 @@ declare(strict_types=1);
|
|||
*
|
||||
*/
|
||||
|
||||
script('settings', [
|
||||
'vue-settings-personal-security',
|
||||
]);
|
||||
script('settings', 'vue-settings-personal-security');
|
||||
|
||||
?>
|
||||
|
||||
|
|
|
@ -22,9 +22,7 @@ declare(strict_types=1);
|
|||
*
|
||||
*/
|
||||
|
||||
script('settings', [
|
||||
'vue-settings-personal-webauthn',
|
||||
]);
|
||||
script('settings', 'vue-settings-personal-webauthn');
|
||||
|
||||
?>
|
||||
|
||||
|
|
|
@ -19,9 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
script('core', [
|
||||
'dist/systemtags',
|
||||
]);
|
||||
script('core', 'dist/systemtags');
|
||||
|
||||
script('systemtags', 'admin');
|
||||
style('systemtags', 'settings');
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
<?php /** @var \OCP\IL10N $l */ ?>
|
||||
<?php
|
||||
script('user_ldap', [
|
||||
'renewPassword',
|
||||
]);
|
||||
script('user_ldap', 'renewPassword');
|
||||
style('user_ldap', 'renewPassword');
|
||||
?>
|
||||
|
||||
|
|
|
@ -40,9 +40,7 @@ class LoadAdditionalSettingsScriptsListener implements IEventListener {
|
|||
class_exists(Template::class, true);
|
||||
}
|
||||
|
||||
script('core', [
|
||||
'dist/systemtags',
|
||||
]);
|
||||
script('core', 'dist/systemtags');
|
||||
|
||||
script(Application::APP_ID, [
|
||||
'workflowengine',
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
<?php
|
||||
script('core', [
|
||||
'dist/install'
|
||||
]);
|
||||
script('core', 'dist/install');
|
||||
?>
|
||||
<input type='hidden' id='hasMySQL' value='<?php p($_['hasMySQL']) ?>'>
|
||||
<input type='hidden' id='hasSQLite' value='<?php p($_['hasSQLite']) ?>'>
|
||||
|
|
Loading…
Reference in New Issue