summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2013-01-30 19:32:35 -0500
committerBharat Mediratta <bharat@menalto.com>2013-01-30 19:32:35 -0500
commit49dd0994df6f6709dcd9ea6971beb13c68a99cf0 (patch)
tree4ea35ec49936239622988b544debc3799d8e7ed6 /modules
parentee0a0d7bf7ef6ae05a8961f8a956871a8c7bf371 (diff)
Follow-on to 1e4d75c12072b49c3469f18af13bcf3439afc6b0 for #1975.
Create a siblings() function which pulls together the siblings_callback function and makes it a more palatable API.
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/libraries/Theme_View.php4
1 files changed, 4 insertions, 0 deletions
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;
}