From 97bd9842f44bb25832f5dd8288372f2199cf3b7b Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Wed, 30 Oct 2013 00:51:01 +0100 Subject: Correction de bugs, amélioration titres admin, traductions. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/admin/add.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'code/admin/add.php') diff --git a/code/admin/add.php b/code/admin/add.php index c839e0a..0869dd5 100644 --- a/code/admin/add.php +++ b/code/admin/add.php @@ -9,7 +9,11 @@ // Localization Init l10n_init($site_conf['site_admin_lang']); - $kind=sanitize($_GET, 'kind', '/[^a-z_]+/', 'page'); /* Could be : page, media */ + // URL parameter parsing + $kind = sanitize($_GET, 'kind', '/[^a-z_]+/', 'page'); /* Could be : page, media */ + + // Pre-computed because used twice + $page_title = _('Admin') . ' - ' . ( ($kind=='media')?_('Add a media'):_('Add a page') ); ?> @@ -18,9 +22,10 @@ -<?=($kind=='media')?_('Add media'):_('Add page')?> +<?=$page_title?> +

@@ -50,6 +55,8 @@
+ +
-- cgit v1.2.3