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 Bharat Mediratta
parent 9d19c05652
commit 89ef20bba6

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();
}
}