summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-03-30 19:51:11 +0200
committerDerek Allard <derek.allard@ellislab.com>2008-03-30 19:51:11 +0200
commit2ec3a5e12f2095ae2cc341760a9c44acf353743e (patch)
treefe6471c5fab8c6402cf2817553c4cc4e9d0bdbdd
parentf00992d66cab3efa8cbec8cc8623c4ea830cc5e3 (diff)
Fixed a bug in link_tag() of the URL helper where a key was passed instead of a value.
-rw-r--r--system/helpers/html_helper.php2
-rw-r--r--user_guide/changelog.html1
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