summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2018-06-01 16:48:25 +0200
committerGitHub <noreply@github.com>2018-06-01 16:48:25 +0200
commitb677461a9c6d617f26eff92d2077ba1dc3177bc0 (patch)
tree5c4df19b127c6c7a16ad7217a2ccc24e45cdbe27 /system
parentb1769f962d74adff766666e2b3e055191bf94b63 (diff)
parent605dcbc55ed4dfa1c8fb8ed659dc51b0710ff165 (diff)
Merge pull request #5516 from wpyh/patch-1
Use Config::base_url() properly
Diffstat (limited to 'system')
-rw-r--r--system/helpers/html_helper.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/helpers/html_helper.php b/system/helpers/html_helper.php
index 0e1e6042c..3a478bf26 100644
--- a/system/helpers/html_helper.php
+++ b/system/helpers/html_helper.php
@@ -200,7 +200,7 @@ if ( ! function_exists('img'))
}
else
{
- $img .= ' src="'.get_instance()->config->slash_item('base_url').$v.'"';
+ $img .= ' src="'.get_instance()->config->base_url($v).'"';
}
}
else
@@ -292,7 +292,7 @@ if ( ! function_exists('link_tag'))
}
else
{
- $link .= 'href="'.$CI->config->slash_item('base_url').$v.'" ';
+ $link .= 'href="'.$CI->config->base_url($v).'" ';
}
}
else
@@ -313,7 +313,7 @@ if ( ! function_exists('link_tag'))
}
else
{
- $link .= 'href="'.$CI->config->slash_item('base_url').$href.'" ';
+ $link .= 'href="'.$CI->config->base_url($href).'" ';
}
$link .= 'rel="'.$rel.'" type="'.$type.'" ';