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:
Bharat Mediratta
2008-12-15 03:59:03 +00:00
parent b2107c3734
commit 96d906c903

View File

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