summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery_installer.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-09-30 17:30:01 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-09-30 17:30:01 -0700
commit81eaf1e46cb1646bf6b5d5c2f86ea3b3c7a0bd06 (patch)
tree55c08dfa432a20eae6bb99a8723e65239d4a4d34 /modules/gallery/helpers/gallery_installer.php
parente197e4017daa0833cec84d8392e4d05cdf81503d (diff)
Add functionality to activate sidebar blocks when the module is activated and deactivate the sidebar blocks when the module is deactivated.
Diffstat (limited to 'modules/gallery/helpers/gallery_installer.php')
-rw-r--r--modules/gallery/helpers/gallery_installer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_installer.php b/modules/gallery/helpers/gallery_installer.php
index 743808ea..b1ea1f19 100644
--- a/modules/gallery/helpers/gallery_installer.php
+++ b/modules/gallery/helpers/gallery_installer.php
@@ -386,7 +386,7 @@ class gallery_installer {
$sidebar_blocks = block_manager::get_active("site.sidebar");
if (empty($sidebar_blocks)) {
$available_blocks = block_manager::get_available_site_blocks();
- foreach (array_key(block_manager::get_available_site_blocks()) as $id) {
+ foreach (array_keys(block_manager::get_available_site_blocks()) as $id) {
$sidebar_blocks[] = explode(":", $id);
}
block_manager::set_active("site.sidebar", $sidebar_blocks);