Generated URLs default to use the current protocol (http or https)

Signed-off-by: Phill Sparks <phill@bulbstudios.com>
This commit is contained in:
Phill Sparks
2012-05-30 13:14:16 +01:00
parent d21713f35f
commit 6151886860
6 changed files with 16 additions and 17 deletions

View File

@@ -51,7 +51,7 @@ class Form {
* @param bool $https
* @return string
*/
public static function open($action = null, $method = 'POST', $attributes = array(), $https = false)
public static function open($action = null, $method = 'POST', $attributes = array(), $https = null)
{
$method = strtoupper($method);
@@ -129,7 +129,7 @@ class Form {
* @param bool $https
* @return string
*/
public static function open_for_files($action = null, $method = 'POST', $attributes = array(), $https = false)
public static function open_for_files($action = null, $method = 'POST', $attributes = array(), $https = null)
{
$attributes['enctype'] = 'multipart/form-data';