diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-11-28 23:48:38 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-11-28 23:48:38 -0800 |
commit | 3d4672ba88e2ef8cb47a9769e94fb3a45bdb3882 (patch) | |
tree | afddca7ea67f457a57ede44e885cd4316682de76 | |
parent | f3981bbaa9c9e72d147e164a3decea411b6dd54c (diff) |
Give the theme a chance to handle theme function callbacks as well.
-rw-r--r-- | modules/gallery/libraries/Theme_View.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/gallery/libraries/Theme_View.php b/modules/gallery/libraries/Theme_View.php index 817a46ad..f78a7018 100644 --- a/modules/gallery/libraries/Theme_View.php +++ b/modules/gallery/libraries/Theme_View.php @@ -265,6 +265,13 @@ class Theme_View_Core extends Gallery_View { } } + $helper_class = theme::$site_theme_name . "_theme"; + if (method_exists($helper_class, $function)) { + $blocks[] = call_user_func_array( + array($helper_class, $function), + array_merge(array($this), $args)); + } + if ($function == "head") { array_unshift($blocks, $this->combine_files($this->css, "css")); array_unshift($blocks, $this->combine_files($this->scripts, "javascript")); |