aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-12-13 10:01:31 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-12-13 10:01:31 +0100
commit67aa7e76c186e43a5e0290ed2c512791c7a3005c (patch)
tree5636ee08aaef615e9a6a0da38594c13e20175c64
parenta91a8f5e9382ae15674d0f65dfd05002a1523b75 (diff)
Fix strings and url on auth configuration page
-rw-r--r--app/i18n/en/admin.php2
-rw-r--r--app/i18n/fr/admin.php2
-rw-r--r--app/views/auth/index.phtml5
3 files changed, 5 insertions, 4 deletions
diff --git a/app/i18n/en/admin.php b/app/i18n/en/admin.php
index 26af23225..083cabfed 100644
--- a/app/i18n/en/admin.php
+++ b/app/i18n/en/admin.php
@@ -12,7 +12,7 @@ return array(
'title' => 'Authentication',
'title_reset' => 'Authentication reset',
'token' => 'Authentication token',
- 'token_help' => 'Allows to access RSS output of the default user without authentication.<br /><kbd>%s?output=rss&token=%s</kbd>',
+ 'token_help' => 'Allows to access RSS output of the default user without authentication:',
'type' => 'Authentication method',
'unsafe_autologin' => 'Allow unsafe automatic login using the format: ',
),
diff --git a/app/i18n/fr/admin.php b/app/i18n/fr/admin.php
index a0d173b0c..1d327a33c 100644
--- a/app/i18n/fr/admin.php
+++ b/app/i18n/fr/admin.php
@@ -12,7 +12,7 @@ return array(
'title' => 'Authentification',
'title_reset' => 'Réinitialisation de l’authentification',
'token' => 'Jeton d’identification',
- 'token_help' => 'Permet d’accéder à la sortie RSS de l’utilisateur par défaut sans besoin de s’authentifier.<br /><kbd>%s?output=rss&token=%s</kbd>',
+ 'token_help' => 'Permet d’accéder à la sortie RSS de l’utilisateur par défaut sans besoin de s’authentifier :',
'type' => 'Méthode d’authentification',
'unsafe_autologin' => 'Autoriser les connexions automatiques non-sûres au format : ',
),
diff --git a/app/views/auth/index.phtml b/app/views/auth/index.phtml
index 420937042..ee1e2d8b9 100644
--- a/app/views/auth/index.phtml
+++ b/app/views/auth/index.phtml
@@ -47,7 +47,7 @@
<input type="checkbox" name="unsafe_autologin" id="unsafe_autologin" value="1"<?php echo Minz_Configuration::unsafeAutologinEnabled() ? ' checked="checked"' : '',
Minz_Configuration::canLogIn() ? '' : ' disabled="disabled"'; ?> />
<?php echo _t('admin.auth.unsafe_autologin'); ?>
- <kbd>p/i/?a=formLogin&amp;u=Alice&amp;p=1234</kbd>
+ <kbd><?php echo Minz_Url::display(array('c' => 'auth', 'a' => 'login', 'params' => array('u' => 'alice', 'p' => '1234')), 'html', true); ?></kbd>
</label>
</div>
</div>
@@ -59,7 +59,8 @@
<div class="group-controls">
<input type="text" id="token" name="token" value="<?php echo $token; ?>" placeholder="<?php echo _t('gen.short.blank_to_disable'); ?>"<?php
echo Minz_Configuration::canLogIn() ? '' : ' disabled="disabled"'; ?> />
- <?php echo _i('help'); ?> <?php echo _t('admin.auth.token_help', Minz_Url::display(null, 'html', true), $token); ?>
+ <?php echo _i('help'); ?> <?php echo _t('admin.auth.token_help'); ?>
+ <kbd><?php echo Minz_Url::display(array('params' => array('output' => 'rss', 'token' => $token)), 'html', true); ?></kbd>
</div>
</div>
<?php } ?>