Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-03-26 11:30:18 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-03-26 18:34:56 +0300
commitb80ebc96748b45fd2e0ba9323308657c4b00b7ec (patch)
treeec20e0ffa2f86b9b54939a83a785407319f94559 /core/templates
parent62403d0932be7d620c7bdadc6b4e13eb496fcd6f (diff)
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/templates')
-rw-r--r--core/templates/404.php2
-rw-r--r--core/templates/installation.php2
-rw-r--r--core/templates/update.admin.php4
-rw-r--r--core/templates/update.user.php4
4 files changed, 6 insertions, 6 deletions
diff --git a/core/templates/404.php b/core/templates/404.php
index 071d57b1b68..925059d4750 100644
--- a/core/templates/404.php
+++ b/core/templates/404.php
@@ -20,7 +20,7 @@ if(!isset($_)) {//standalone page is not supported anymore - redirect to /
<h2><?php p($l->t('File not found')); ?></h2>
<p class="infogroup"><?php p($l->t('The document could not be found on the server. Maybe the share was deleted or has expired?')); ?></p>
<p><a class="button primary" href="<?php p(\OC::$server->getURLGenerator()->linkTo('', 'index.php')) ?>">
- <?php p($l->t('Back to %s', array($theme->getName()))); ?>
+ <?php p($l->t('Back to %s', [$theme->getName()])); ?>
</a></p>
</div>
<?php endif; ?>
diff --git a/core/templates/installation.php b/core/templates/installation.php
index 5a351e97416..25052782e6f 100644
--- a/core/templates/installation.php
+++ b/core/templates/installation.php
@@ -81,7 +81,7 @@ script('core', [
<?php foreach($_['databases'] as $type => $label): ?>
<?php if(count($_['databases']) === 1): ?>
<p class="info">
- <?php p($l->t( 'Only %s is available.', array($label) )); ?>
+ <?php p($l->t( 'Only %s is available.', [$label] )); ?>
<?php p($l->t( 'Install and activate additional PHP modules to choose other database types.' )); ?><br>
<a href="<?php print_unescaped(link_to_docs('admin-source_install')); ?>" target="_blank" rel="noreferrer noopener">
<?php p($l->t( 'For more details check out the documentation.' )); ?> ↗</a>
diff --git a/core/templates/update.admin.php b/core/templates/update.admin.php
index f4a1c72ae8d..4a010c025be 100644
--- a/core/templates/update.admin.php
+++ b/core/templates/update.admin.php
@@ -4,7 +4,7 @@
<h2 class="title"><?php p($l->t('App update required')); ?></h2>
<?php } else { ?>
<h2 class="title"><?php p($l->t('%1$s will be updated to version %2$s',
- array($_['productName'], $_['version']))); ?></h2>
+ [$_['productName'], $_['version']])); ?></h2>
<?php } ?>
<?php if (!empty($_['appsToUpgrade'])) { ?>
<div class="infogroup">
@@ -28,7 +28,7 @@
<?php } ?>
<?php if (!empty($_['oldTheme'])) { ?>
<div class="infogroup">
- <?php p($l->t('The theme %s has been disabled.', array($_['oldTheme']))) ?>
+ <?php p($l->t('The theme %s has been disabled.', [$_['oldTheme']])) ?>
</div>
<?php } ?>
<div class="infogroup bold">
diff --git a/core/templates/update.user.php b/core/templates/update.user.php
index 661d7d45a30..2c6ffd43444 100644
--- a/core/templates/update.user.php
+++ b/core/templates/update.user.php
@@ -1,6 +1,6 @@
<div class="body-login-container">
<div class="icon-big icon-error-white"></div>
- <h2><?php p($l->t('Maintenance mode', array($theme->getName()))) ?></h2>
- <p><?php p($l->t('This %s instance is currently in maintenance mode, which may take a while.', array($theme->getName()))) ?> <?php p($l->t('This page will refresh itself when the instance is available again.')) ?></p>
+ <h2><?php p($l->t('Maintenance mode', [$theme->getName()])) ?></h2>
+ <p><?php p($l->t('This %s instance is currently in maintenance mode, which may take a while.', [$theme->getName()])) ?> <?php p($l->t('This page will refresh itself when the instance is available again.')) ?></p>
<p><?php p($l->t('Contact your system administrator if this message persists or appeared unexpectedly.')) ?></p>
</div>