Remove deprecated use of the EXT constant

This commit is contained in:
Eike Foken
2011-09-13 19:24:58 +02:00
parent d6423bcf87
commit 8b82d74926
3 changed files with 45 additions and 45 deletions

View File

@@ -79,13 +79,13 @@ class MY_Lang extends CI_Lang {
* @see CI_Lang::load()
*/
public function load($langfile = '', $idiom = '', $return = false, $add_suffix = true, $alt_path = '') {
$langfile = str_replace(EXT, '', $langfile);
$langfile = str_replace('.php', '', $langfile);
if ($add_suffix == true) {
$langfile = str_replace('_lang.', '', $langfile) . '_lang';
}
$langfile .= EXT;
$langfile .= '.php';
if (in_array($langfile, $this->is_loaded, true)) {
return;