From 49dd0994df6f6709dcd9ea6971beb13c68a99cf0 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 30 Jan 2013 19:32:35 -0500 Subject: Follow-on to 1e4d75c12072b49c3469f18af13bcf3439afc6b0 for #1975. Create a siblings() function which pulls together the siblings_callback function and makes it a more palatable API. --- modules/gallery/libraries/Theme_View.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules') diff --git a/modules/gallery/libraries/Theme_View.php b/modules/gallery/libraries/Theme_View.php index 8d69f23b..cf384109 100644 --- a/modules/gallery/libraries/Theme_View.php +++ b/modules/gallery/libraries/Theme_View.php @@ -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; } -- cgit v1.2.3