summaryrefslogtreecommitdiffstats
path: root/apps/settings
diff options
context:
space:
mode:
authorFrançois Freitag <mail@franek.fr>2021-05-18 09:22:07 +0200
committerFrançois Freitag <mail@franek.fr>2021-05-18 09:24:05 +0200
commitd88785118337ae395eac03236a20d5979de77938 (patch)
tree334ab128254796d173fd193fcdaa066af311b2a6 /apps/settings
parent83330b8c4ca27b094b4a262dde261a0b767b3f9c (diff)
downloadnextcloud-server-d88785118337ae395eac03236a20d5979de77938.tar.gz
nextcloud-server-d88785118337ae395eac03236a20d5979de77938.zip
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>
Diffstat (limited to 'apps/settings')
-rw-r--r--apps/settings/templates/settings/personal/security/authtokens.php4
-rw-r--r--apps/settings/templates/settings/personal/security/webauthn.php4
2 files changed, 2 insertions, 6 deletions
diff --git a/apps/settings/templates/settings/personal/security/authtokens.php b/apps/settings/templates/settings/personal/security/authtokens.php
index 1db0d91fe69..e90698f5eaf 100644
--- a/apps/settings/templates/settings/personal/security/authtokens.php
+++ b/apps/settings/templates/settings/personal/security/authtokens.php
@@ -22,9 +22,7 @@ declare(strict_types=1);
*
*/
-script('settings', [
- 'vue-settings-personal-security',
-]);
+script('settings', 'vue-settings-personal-security');
?>
diff --git a/apps/settings/templates/settings/personal/security/webauthn.php b/apps/settings/templates/settings/personal/security/webauthn.php
index 268e06aef7d..74e219a5211 100644
--- a/apps/settings/templates/settings/personal/security/webauthn.php
+++ b/apps/settings/templates/settings/personal/security/webauthn.php
@@ -22,9 +22,7 @@ declare(strict_types=1);
*
*/
-script('settings', [
- 'vue-settings-personal-webauthn',
-]);
+script('settings', 'vue-settings-personal-webauthn');
?>