commit | e3c41cfa8cda0acda255ffb186464ada4c2c8a5d | [log] [tgz] |
---|---|---|
author | Eric Barnes <eric@ericlbarnes.com> | Mon Mar 21 22:07:53 2011 -0400 |
committer | Eric Barnes <eric@ericlbarnes.com> | Mon Mar 21 22:07:53 2011 -0400 |
tree | d6038f7df4ca77b4a75cf1459abde18078fd0d81 | |
parent | fdd5b11b62f127901ddff2e5dc7923b063371070 [diff] [blame] |
Added error logging to language. Fixes #32
diff --git a/system/core/Lang.php b/system/core/Lang.php index fb17790..0b926a3 100644 --- a/system/core/Lang.php +++ b/system/core/Lang.php
@@ -130,6 +130,13 @@ 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; }