diff options
-rw-r--r-- | system/helpers/html_helper.php | 2 | ||||
-rw-r--r-- | user_guide/changelog.html | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/system/helpers/html_helper.php b/system/helpers/html_helper.php index 4684d8ea8..3e15b4442 100644 --- a/system/helpers/html_helper.php +++ b/system/helpers/html_helper.php @@ -257,7 +257,7 @@ if (! function_exists('link_tag')) {
foreach ($href as $k=>$v)
{
- if ($k == 'href' AND strpos($k, '://') === FALSE)
+ if ($k == 'href' AND strpos($v, '://') === FALSE)
{
if ($index_page === TRUE)
{
diff --git a/user_guide/changelog.html b/user_guide/changelog.html index d70b449b5..856ce1a69 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -77,6 +77,7 @@ Change Log <ul>
<li>Modified <kbd>img()</kbd> in the <a href="helpers/html_helper.html">HTML Helper</a> to remove an unneeded space (#4208).</li>
<li>Modified <kbd>anchor()</kbd> in the <a href="helpers/url_helper.html">URL helper</a> to convert entities in the title attribute (#4209).</li>
+ <li>Fixed a bug in <kbd>link_tag()</kbd> of the <a href="helpers/url_helper.html">URL helper</a> where a key was passed instead of a value.</li>
</ul>
</li>
<li>Plugins
|