Upgrade to CodeIgniter 2.0.3
This commit is contained in:
@@ -51,14 +51,14 @@ class CI_Lang {
|
||||
*/
|
||||
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))
|
||||
{
|
||||
@@ -129,19 +129,19 @@ class CI_Lang {
|
||||
*/
|
||||
function line($line = '')
|
||||
{
|
||||
$line = ($line == '' OR ! isset($this->language[$line])) ? FALSE : $this->language[$line];
|
||||
$value = ($line == '' OR ! isset($this->language[$line])) ? FALSE : $this->language[$line];
|
||||
|
||||
// Because killer robots like unicorns!
|
||||
if ($line === FALSE)
|
||||
if ($value === FALSE)
|
||||
{
|
||||
log_message('error', 'Could not find the language line "'.$line.'"');
|
||||
}
|
||||
|
||||
return $line;
|
||||
return $value;
|
||||
}
|
||||
|
||||
}
|
||||
// END Language Class
|
||||
|
||||
/* End of file Lang.php */
|
||||
/* Location: ./system/core/Lang.php */
|
||||
/* Location: ./system/core/Lang.php */
|
||||
|
||||
Reference in New Issue
Block a user