mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 11:29:24 -04:00
Fix a bug where organize doesn't properly generate the tree at the root album.
This commit is contained in:
@@ -136,6 +136,13 @@ class Organize_Controller extends Controller {
|
||||
$v = new View("organize_tree.html");
|
||||
$v->parents = $album->parents();
|
||||
$v->album = $album;
|
||||
|
||||
if ($album->id == 1) {
|
||||
$v->peers = array($album);
|
||||
} else {
|
||||
$v->peers = $album->parent()->children(null, 0, array("type" => "album"));
|
||||
}
|
||||
|
||||
return $v;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user