summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Barnes <eric@ericlbarnes.com>2011-03-22 03:07:53 +0100
committerEric Barnes <eric@ericlbarnes.com>2011-03-22 03:07:53 +0100
commite3c41cfa8cda0acda255ffb186464ada4c2c8a5d (patch)
treed6038f7df4ca77b4a75cf1459abde18078fd0d81
parentfdd5b11b62f127901ddff2e5dc7923b063371070 (diff)
Added error logging to language. Fixes #32
-rw-r--r--system/core/Lang.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/system/core/Lang.php b/system/core/Lang.php
index fb177902e..0b926a303 100644
--- a/system/core/Lang.php
+++ b/system/core/Lang.php
@@ -130,6 +130,13 @@ class CI_Lang {
function line($line = '')
{
$line = ($line == '' OR ! isset($this->language[$line])) ? FALSE : $this->language[$line];
+
+ // Because killer robots like unicorns!
+ if ($line === FALSE)
+ {
+ log_message('error', 'Could not find the language line "'.$line.'"');
+ }
+
return $line;
}