Kohana v3.3.5
This commit is contained in:
@@ -219,7 +219,7 @@ class Kohana_Validation implements ArrayAccess {
|
||||
if ($field !== TRUE AND ! isset($this->_labels[$field]))
|
||||
{
|
||||
// Set the field label to the field name
|
||||
$this->_labels[$field] = preg_replace('/[^\pL]+/u', ' ', $field);
|
||||
$this->_labels[$field] = $field;
|
||||
}
|
||||
|
||||
// Store the rule and params for this rule
|
||||
@@ -430,6 +430,13 @@ class Kohana_Validation implements ArrayAccess {
|
||||
}
|
||||
}
|
||||
|
||||
// Unbind all the automatic bindings to avoid memory leaks.
|
||||
unset($this->_bound[':validation']);
|
||||
unset($this->_bound[':data']);
|
||||
unset($this->_bound[':field']);
|
||||
unset($this->_bound[':value']);
|
||||
|
||||
|
||||
// Restore the data to its original form
|
||||
$this->_data = $original;
|
||||
|
||||
|
Reference in New Issue
Block a user