From e3c41cfa8cda0acda255ffb186464ada4c2c8a5d Mon Sep 17 00:00:00 2001 From: Eric Barnes Date: Mon, 21 Mar 2011 22:07:53 -0400 Subject: Added error logging to language. Fixes #32 --- system/core/Lang.php | 7 +++++++ 1 file changed, 7 insertions(+) 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; } -- cgit v1.2.3-24-g4f1b