mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-28 02:34:10 -04:00
Follow-on to 1e4d75c120 for #1975.
Create a siblings() function which pulls together the siblings_callback function and makes it a more palatable API.
This commit is contained in:
@@ -86,6 +86,10 @@ class Theme_View_Core extends Gallery_View {
|
||||
return $this->item;
|
||||
}
|
||||
|
||||
public function siblings() {
|
||||
return call_user_func_array($this->siblings_callback[0], $this->siblings_callback[1]);
|
||||
}
|
||||
|
||||
public function tag() {
|
||||
return $this->tag;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user