From 254f56a449841016fabb0e60a35e2db295c04e6d Mon Sep 17 00:00:00 2001 From: Tijn Kuyper Date: Sat, 12 Jan 2019 18:12:26 +0100 Subject: [PATCH] Render help text in Admin Area in correct language Admin Area language setting ($pref['adminlanguage']) rather than Frontend language setting (e_LANGUAGE or $pref['sitelanguage']) --- e107_core/shortcodes/batch/admin_shortcodes.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e107_core/shortcodes/batch/admin_shortcodes.php b/e107_core/shortcodes/batch/admin_shortcodes.php index 150647657..8efea4d95 100644 --- a/e107_core/shortcodes/batch/admin_shortcodes.php +++ b/e107_core/shortcodes/batch/admin_shortcodes.php @@ -172,9 +172,9 @@ class admin_shortcodes if(strpos(e_SELF, e_ADMIN_ABS) !== false) { - if (is_readable(e_LANGUAGEDIR.e_LANGUAGE.'/admin/help/'.e_PAGE)) + if (is_readable(e_LANGUAGEDIR.'/'.$pref['adminlanguage'].'/admin/help/'.e_PAGE)) { - $helpfile = e_LANGUAGEDIR.e_LANGUAGE.'/admin/help/'.e_PAGE; + $helpfile = e_LANGUAGEDIR.'/'.$pref['adminlanguage'].'/admin/help/'.e_PAGE; } elseif (is_readable(e_LANGUAGEDIR.'English/admin/help/'.e_PAGE)) {