From 19cb27c9a4489c357c0e516c69ebcb218f8832c1 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Tue, 29 Sep 2009 15:07:53 -0700 Subject: change the block_manager api so that the theme is passed into the get method. convert info to the new sidebar block approach --- modules/gallery/helpers/block_manager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/gallery/helpers') diff --git a/modules/gallery/helpers/block_manager.php b/modules/gallery/helpers/block_manager.php index c5320922..87563b32 100644 --- a/modules/gallery/helpers/block_manager.php +++ b/modules/gallery/helpers/block_manager.php @@ -60,12 +60,12 @@ class block_manager_Core { return $blocks; } - static function get_html($location) { + static function get_html($location, $theme) { $active = self::get_active($location); $result = ""; foreach ($active as $id => $desc) { if (method_exists("$desc[0]_block", "get")) { - $block = call_user_func(array("$desc[0]_block", "get"), $desc[1]); + $block = call_user_func(array("$desc[0]_block", "get"), $desc[1], $theme); $block->id = $id; $result .= $block; } -- cgit v1.2.3