Commits

Eric Barnes committed c43c6de

Added error logging to language. Fixes #32

  • Participants
  • Parent commits dc9dda8

Comments (0)

Files changed (1)

File system/core/Lang.php

 	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;
 	}