commit | b0ddf7ff878c004af962a721c3d3f672e4a2fa58 | [log] [tgz] |
---|---|---|
author | Ivan Tcholakov <ivantcholakov@gmail.com> | Sat May 31 17:01:34 2014 +0300 |
committer | Ivan Tcholakov <ivantcholakov@gmail.com> | Sat May 31 17:01:34 2014 +0300 |
tree | a889b844ced2b84537b662b38bebf0688fb4cf6f | |
parent | f8b6180f37841362d28e78eb25aaf38c55da0839 [diff] [blame] |
A fix about loading language files - ensuring suffix '_lang' presence properly.
diff --git a/system/core/Lang.php b/system/core/Lang.php index ae0a4d6..92772ac 100644 --- a/system/core/Lang.php +++ b/system/core/Lang.php
@@ -80,7 +80,7 @@ if ($add_suffix === TRUE) { - $langfile = str_replace('_lang', '', $langfile).'_lang'; + $langfile = preg_replace('/_lang$/', '', $langfile).'_lang'; } $langfile .= '.php';