summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2011-03-10 17:38:32 +0100
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-03-10 17:38:32 +0100
commit133beafd1746b0f5fa06794fd183289d43defdbe (patch)
tree7a285b077e72591d7e8169356811d67f036be189
parent0e3263b44d2762894588ff3e682579ec0cb77fa0 (diff)
Changed the logic for form_open() in Form helper. If no value is passed it will submit to the current URL.
-rw-r--r--system/helpers/form_helper.php5
-rw-r--r--user_guide/changelog.html7
2 files changed, 10 insertions, 2 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index 758056b50..8ed520f5d 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -49,7 +49,10 @@ if ( ! function_exists('form_open'))
$attributes = 'method="post"';
}
- $action = ( strpos($action, '://') === FALSE) ? $CI->config->site_url($action) : $action;
+ if ($action && strpos($action, '://') === FALSE)
+ {
+ $CI->config->site_url($action);
+ }
$form = '<form action="'.$action.'"';
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index 159f1a645..44c07b7ac 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -28,7 +28,7 @@
<div id="masthead">
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr>
-<td><h1>CodeIgniter User Guide Version 2.0.0</h1></td>
+<td><h1>CodeIgniter User Guide Version 2.0.1</h1></td>
<td id="breadcrumb_right"><a href="./toc.html">Table of Contents Page</a></td>
</tr>
</table>
@@ -79,6 +79,11 @@ Hg Tag: n/a</p>
<li class="reactor"><a href="libraries/output.html">Output Class</a> will now support method chaining.</li>
</ul>
</li>
+ <li>Helpers
+ <ul>
+ <li class="reactor">Changed the logic for <kbd>form_open()</kbd> in <a href="helpers/form_helper.html">Form helper</a>. If no value is passed it will submit to the current URL.</li>
+ </ul>
+ </li>
</ul>
<h3>Bug fixes for 2.0.1</h3>