- Overload a forgotten method
- Code cleanup
This commit is contained in:
parent
a23cf114dc
commit
a4ba3012e7
@ -24,11 +24,17 @@ class item extends item_Core {
|
|||||||
|
|
||||||
if( user_chroot::album() ) {
|
if( user_chroot::album() ) {
|
||||||
$model->and_open()
|
$model->and_open()
|
||||||
->and_where("items.left_ptr", ">=", user_chroot::album()->left_ptr)
|
->and_where('items.left_ptr', '>=', user_chroot::album()->left_ptr)
|
||||||
->and_where("items.right_ptr", "<=", user_chroot::album()->right_ptr)
|
->and_where('items.right_ptr', '<=', user_chroot::album()->right_ptr)
|
||||||
->close();
|
->close();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $model;
|
return $model;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static function root() {
|
||||||
|
return ( user_chroot::album() )
|
||||||
|
? user_chroot::album()
|
||||||
|
: parent::root();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user