mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-21 00:49:55 -04:00
Update Forge to r168 from upstream.
Resolves these issues: http://code.google.com/p/kohanamodules/issues/detail?id=6 http://code.google.com/p/kohanamodules/issues/detail?id=7
This commit is contained in:
@@ -283,11 +283,17 @@ class Forge_Core {
|
||||
|
||||
$form_type = 'open';
|
||||
// See if we need a multipart form
|
||||
foreach ($this->inputs as $input)
|
||||
{
|
||||
if ($input instanceof Form_Upload)
|
||||
{
|
||||
$form_type = 'open_multipart';
|
||||
$check_inputs = array($this->inputs);
|
||||
while ($check_inputs) {
|
||||
foreach (array_shift($check_inputs) as $input) {
|
||||
if ($input instanceof Form_Upload)
|
||||
{
|
||||
$form_type = 'open_multipart';
|
||||
}
|
||||
if ($input instanceof Form_Group)
|
||||
{
|
||||
$check_inputs += array($input->inputs);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -310,4 +316,4 @@ class Forge_Core {
|
||||
return (string) $this->render();
|
||||
}
|
||||
|
||||
} // End Forge
|
||||
} // End Forge
|
||||
|
||||
Reference in New Issue
Block a user