Skip to content

Commit

Permalink
Merge pull request bcit-ci#5516 from wpyh/patch-1
Browse files Browse the repository at this point in the history
Use Config::base_url() properly
  • Loading branch information
narfbg authored Jun 1, 2018
2 parents b1769f9 + 605dcbc commit b677461
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions system/helpers/html_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function img($src = '', $index_page = FALSE, $attributes = '')
}
else
{
$img .= ' src="'.get_instance()->config->slash_item('base_url').$v.'"';
$img .= ' src="'.get_instance()->config->base_url($v).'"';
}
}
else
Expand Down Expand Up @@ -292,7 +292,7 @@ function link_tag($href = '', $rel = 'stylesheet', $type = 'text/css', $title =
}
else
{
$link .= 'href="'.$CI->config->slash_item('base_url').$v.'" ';
$link .= 'href="'.$CI->config->base_url($v).'" ';
}
}
else
Expand All @@ -313,7 +313,7 @@ function link_tag($href = '', $rel = 'stylesheet', $type = 'text/css', $title =
}
else
{
$link .= 'href="'.$CI->config->slash_item('base_url').$href.'" ';
$link .= 'href="'.$CI->config->base_url($href).'" ';
}

$link .= 'rel="'.$rel.'" type="'.$type.'" ';
Expand Down

0 comments on commit b677461

Please sign in to comment.