From 9bab8cc8c411e905c921145c5abefd330efee1e4 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 4 Aug 2018 15:08:32 -0700 Subject: [PATCH] Closes #3345 e107.org updated to display current language pack and 2 versions earlier. --- e107_admin/language.php | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/e107_admin/language.php b/e107_admin/language.php index 33dd70914..81dd65859 100644 --- a/e107_admin/language.php +++ b/e107_admin/language.php @@ -144,6 +144,7 @@ if(!empty($_GET['iframe'])) private function loadPackInfo() { + /** @var lancheck $lck */ $lck = e107::getSingleton('lancheck', e_ADMIN."lancheck.php"); $this->onlinePacks = $lck->getOnlineLanguagePacks(); @@ -272,15 +273,15 @@ if(!empty($_GET['iframe'])) - - + + "; $text .= " ".ADLAN_132." - ".$release_diz." - ".$compat_diz." + ".$release_diz." + ".$compat_diz." ".LAN_STATUS." ".LAN_OPTIONS." @@ -300,8 +301,8 @@ if(!empty($_GET['iframe'])) $text .= " ".$language." - ".$value['date']." - ".$value['compatibility']." + ".$value['date']." + ".$value['compatibility']." ".( $errFound ? ADMIN_FALSE_ICON : ADMIN_TRUE_ICON )." "; @@ -378,6 +379,7 @@ if(!empty($_GET['iframe'])) $tp = e107::getParser(); + foreach($this->onlinePacks as $lan=>$value) { @@ -402,10 +404,7 @@ if(!empty($_GET['iframe'])) $text .= " ".$value['name'].""; - if(strpos($value['tag'],'-') !==false) - { - $text .= " ".LANG_LAN_153.""; - } + $text .= ""; @@ -418,8 +417,15 @@ if(!empty($_GET['iframe'])) $url = 'language.php?mode=main&action=download&id='.$value['name']; // $value['url'] $text .= " - ".$value['date']." - ".$value['compatibility']." + ".$value['date']." + ".$value['version']; + + if(strpos($value['tag'],'-') !==false) + { + $text .= " ".LANG_LAN_153.""; + } + + $text .=" ".$status." ".ADLAN_121." ";