summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-11-26 11:36:09 -0800
committerBharat Mediratta <bharat@menalto.com>2009-11-26 11:36:09 -0800
commit2ee38b3d8e7c2789c776c6665e2595bb6561acc6 (patch)
tree1ba4816db720bfd919b3f1795e32e92e2cc7d650 /modules/gallery/libraries
parent4b2e1344b4e4d110a9f61d09b8756d9948de24ac (diff)
ORM::$rules now has a special meaning. Use $form_rules for our
internal rules code.
Diffstat (limited to 'modules/gallery/libraries')
-rw-r--r--modules/gallery/libraries/MY_Forge.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/libraries/MY_Forge.php b/modules/gallery/libraries/MY_Forge.php
index 6bdadea3..9564f941 100644
--- a/modules/gallery/libraries/MY_Forge.php
+++ b/modules/gallery/libraries/MY_Forge.php
@@ -42,8 +42,8 @@ class Forge extends Forge_Core {
if (isset($input->inputs)) {
$input->add_rules_from($model);
}
- if (isset($model->rules[$name])) {
- $input->rules($model->rules[$name]);
+ if (isset($model->form_rules[$name])) {
+ $input->rules($model->form_rules[$name]);
}
}
}