1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 20:51:53 +02:00

Issue #2899 - Theme language-file path fix.

This commit is contained in:
Cameron 2017-12-09 09:56:56 -08:00
parent 8f8d22215b
commit 770d70ff41

View File

@ -3216,7 +3216,7 @@ class e107
*/
public static function themeLan($fname = '', $theme = null, $flat = false)
{
if(null === $theme) $theme = THEME.'/languages/';
if(null === $theme) $theme = THEME.'languages/';
else $theme = e_THEME.preg_replace('#[^\w/]#', '', $theme).'/languages/';
$cstring = 'themelan/'.$theme.$fname.($flat ? '_1' : '_0');