Skip to content

Commit

Permalink
Fix some erroneous variable names (sorry)
Browse files Browse the repository at this point in the history
  • Loading branch information
narfbg committed Nov 26, 2012
1 parent feb1e05 commit 719b60f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion system/core/Lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function load($langfile, $idiom = '', $return = FALSE, $add_suffix = TRUE
{
foreach (get_instance()->load->get_package_paths(TRUE) as $package_path)
{
$package_path .= 'language/'.$idiom.'/'.$langpath;
$package_path .= 'language/'.$idiom.'/'.$langfile;
if ($basepath !== $package_path && file_exists($package_path))
{
include($package_path);
Expand Down
4 changes: 2 additions & 2 deletions system/helpers/language_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ function lang($line, $for = '', $attributes = array())
$CI =& get_instance();
$line = $CI->lang->line($line);

if ($id !== '')
if ($for !== '')
{
$line = '<label for="'.$id.'"'._stringify_attributes($attributes).'>'.$line.'</label>';
$line = '<label for="'.$for.'"'._stringify_attributes($attributes).'>'.$line.'</label>';
}

return $line;
Expand Down

0 comments on commit 719b60f

Please sign in to comment.