Skip to content

Commit

Permalink
Making pretty and adding comments
Browse files Browse the repository at this point in the history
  • Loading branch information
John Bellone committed Aug 21, 2011
1 parent 51cb1be commit 4ddf22f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion system/core/Lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ function __construct()
* @access public
* @param mixed the name of the language file to be loaded. Can be an array
* @param string the language (english, etc.)
* @param return return language hash value if true/otherwise returns true on success
* @param add_suffix add suffix to language files automagically
* @param alt_path string of alternate path to load language from
* @param fallback fallback to english if boolean value is true
* @return mixed
*/
Expand Down Expand Up @@ -95,7 +98,6 @@ function load($langfile = '', $idiom = '', $return = FALSE, $add_suffix = TRUE,

if ($found !== TRUE)
{
// If this boolean variable is set attempt to fall back to english language.
if ($fallback == TRUE)
{
log_message('error', 'Unable to load the requested language file: language/'.$idiom.'/'.$langfile);
Expand Down

0 comments on commit 4ddf22f

Please sign in to comment.