From 87fd78f9bddcda4a0a319a23b106cf2ca03fd542 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Thu, 9 Jun 2011 10:35:02 +0000 Subject: add actual upgrade command + cli_6 string --- en/1/migrate/index.php | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) (limited to 'en/1/migrate/index.php') diff --git a/en/1/migrate/index.php b/en/1/migrate/index.php index 974479a7a..030ffaa10 100644 --- a/en/1/migrate/index.php +++ b/en/1/migrate/index.php @@ -4,22 +4,23 @@ $locale = explode('/', $_SERVER['REQUEST_URI']); $locale = $locale[1]; require 'locales.php'; -if (!array_key_exists($locale, $_t)) { - $locale = 'en'; -} -$_t = $_t[$locale]; +$locale = array_key_exists($locale, $_t) ? $locale : 'en'; + +$_t = ($locale == 'en') + ? $_t['en'] + : array_merge($_t['en'], $_t[$locale]); ?> - + <?php echo $_t['page_title']; ?> - - - - + + + + @@ -79,21 +80,24 @@ $_t = $_t[$locale];


-- cgit v1.2.1