Skip to content

Commit

Permalink
Merge pull request #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 committed Jun 1, 2018
1 parent 8cf7d86 commit aa27dc0
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 aa27dc0

Please sign in to comment.