summaryrefslogtreecommitdiffstats
path: root/system/core/Lang.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-05-31 16:33:22 +0200
committerAndrey Andreev <narf@devilix.net>2014-05-31 16:33:22 +0200
commit8be0e65ed4c1c4f122a11077ef2a9f91a1d15f98 (patch)
treea889b844ced2b84537b662b38bebf0688fb4cf6f /system/core/Lang.php
parentf8b6180f37841362d28e78eb25aaf38c55da0839 (diff)
parentb0ddf7ff878c004af962a721c3d3f672e4a2fa58 (diff)
Merge pull request #3072 from ivantcholakov/develop
A fix about loading language files - ensuring suffix '_lang' presence properly.
Diffstat (limited to 'system/core/Lang.php')
-rw-r--r--system/core/Lang.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Lang.php b/system/core/Lang.php
index ae0a4d642..92772acd6 100644
--- a/system/core/Lang.php
+++ b/system/core/Lang.php
@@ -80,7 +80,7 @@ class CI_Lang {
if ($add_suffix === TRUE)
{
- $langfile = str_replace('_lang', '', $langfile).'_lang';
+ $langfile = preg_replace('/_lang$/', '', $langfile).'_lang';
}
$langfile .= '.php';