Commits

Phil Sturgeon  committed aabd40a

Changed the logic for form_open() in Form helper. If no value is passed it will submit to the current URL.

  • Participants
  • Parent commits 9e5063b

Comments (0)

Files changed (2)

File system/helpers/form_helper.php

 			$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.'"';
 

File user_guide/changelog.html

 <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>
 			<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>