1
0

- Overload a forgotten method

- Code cleanup
This commit is contained in:
Romain LE DISEZ 2010-11-28 23:03:57 +08:00 committed by kandsten
parent a23cf114dc
commit a4ba3012e7

View File

@ -24,11 +24,17 @@ class item extends item_Core {
if( user_chroot::album() ) {
$model->and_open()
->and_where("items.left_ptr", ">=", user_chroot::album()->left_ptr)
->and_where("items.right_ptr", "<=", user_chroot::album()->right_ptr)
->and_where('items.left_ptr', '>=', user_chroot::album()->left_ptr)
->and_where('items.right_ptr', '<=', user_chroot::album()->right_ptr)
->close();
}
return $model;
}
static function root() {
return ( user_chroot::album() )
? user_chroot::album()
: parent::root();
}
}