summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries/Theme_View.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2011-04-23 07:25:33 -0700
committerTim Almdal <tnalmdal@shaw.ca>2011-04-23 07:25:33 -0700
commit4b01676f323fb280ebaa4c041e6894cbb464d8fe (patch)
tree197385da1a9c183cc4e2afc22677083daad566a9 /modules/gallery/libraries/Theme_View.php
parent16ffc81faf863559d788cff1b3b16a8d961fa208 (diff)
Fix for ticket #541
Added a theme_info variable to the theme globals. The properties in the theme.info file are now contained in this theme_info structure. Access is: <?= $theme_info->author ?> will display the theme author.
Diffstat (limited to 'modules/gallery/libraries/Theme_View.php')
-rw-r--r--modules/gallery/libraries/Theme_View.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/libraries/Theme_View.php b/modules/gallery/libraries/Theme_View.php
index a507e9c8..152efc37 100644
--- a/modules/gallery/libraries/Theme_View.php
+++ b/modules/gallery/libraries/Theme_View.php
@@ -38,6 +38,7 @@ class Theme_View_Core extends Gallery_View {
$this->item = null;
$this->tag = null;
$this->set_global(array("theme" => $this,
+ "theme_info" => theme::get_info($this->theme_name),
"user" => identity::active_user(),
"page_type" => $page_type,
"page_subtype" => $page_subtype,