Changeset 1588

Show
Ignore:
Timestamp:
12/19/07 12:45:52 (8 months ago)
Author:
zombor
Message:

We need mutlipart forms now.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/modules/forge/libraries/Forge.php

    r1548 r1588  
    125125                } 
    126126 
     127                $form_type = 'open'; 
     128                // See if we need a multipart form 
     129                foreach ($this->inputs as $input) 
     130                { 
     131                        if ($input instanceof Form_Upload) 
     132                        { 
     133                                $form_type = 'open_multipart'; 
     134                                break; 
     135                        } 
     136                } 
    127137                // Set the form open and close 
    128                 $form->open  = form::open($form->action, array('method' => 'post'), $hidden); 
     138                $form->open  = form::$form_type($form->action, array('method' => 'post'), $hidden); 
    129139                $form->close = form::close(); 
    130140