summaryrefslogtreecommitdiffstats
path: root/system/core/Lang.php
diff options
context:
space:
mode:
authorIvan Tcholakov <ivantcholakov@gmail.com>2014-05-31 16:01:34 +0200
committerIvan Tcholakov <ivantcholakov@gmail.com>2014-05-31 16:01:34 +0200
commitb0ddf7ff878c004af962a721c3d3f672e4a2fa58 (patch)
treea889b844ced2b84537b662b38bebf0688fb4cf6f /system/core/Lang.php
parentf8b6180f37841362d28e78eb25aaf38c55da0839 (diff)
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';