Changeset 2885

Show
Ignore:
Timestamp:
06/23/2008 08:35:18 PM (4 months ago)
Author:
Shadowhand
Message:

Fixing a bug in form::open() that would cause to use the current URI

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/helpers/form.php

    r2751 r2885  
    2020         * @return  string 
    2121         */ 
    22         public static function open($action = '', $attr = array(), $hidden = NULL) 
     22        public static function open($action = NULL, $attr = array(), $hidden = NULL) 
    2323        { 
    2424                // Make sure that the method is always set 
     
    3131                } 
    3232 
    33                 if (empty($action) OR ! is_string($action)) 
     33                if ($action === NULL) 
    3434                { 
    3535                        // Use the current URL as the default action 
    36                         $action = url::site(Router::$current_uri); 
     36                        $action = url::site(Router::$complete_uri); 
    3737                } 
    3838                elseif (strpos($action, '://') === FALSE)