mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-22 23:05:18 -04:00
Add the photo controller, and tie it to the photo page in our theme.
Implement a real breadcrumb.
This commit is contained in:
@@ -82,13 +82,15 @@ class ORM_MPTT_Core extends ORM {
|
||||
}
|
||||
|
||||
/**
|
||||
* Return all the parents of this node, in order from root to leaf.
|
||||
* Return all the parents of this node, in order from root to this node's immediate parent.
|
||||
*
|
||||
* @return array ORM
|
||||
*/
|
||||
function parents() {
|
||||
$id = (int)$this->id;
|
||||
if (!isset($this->parents)) {
|
||||
$this->parents = $this->where("`left` <= {$this->left}")
|
||||
$this->parents = $this
|
||||
->where("`left` <= {$this->left}")
|
||||
->where("`right` >= {$this->right}")
|
||||
->orderby("left", "ASC")
|
||||
->find_all();
|
||||
|
||||
Reference in New Issue
Block a user