diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-13 13:56:05 -0800 | 
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-13 13:56:05 -0800 | 
| commit | 0fe32a61f6c55e1302e45358375bf69a161ccdd4 (patch) | |
| tree | 96bed6d9a9aac02d700acb1e8932cfdaaf147718 /modules/gallery/controllers/admin_sidebar.php | |
| parent | def88149ccf8b542b376b96dd25c52f2ec6920e1 (diff) | |
Standardize the name of the blocks.
Diffstat (limited to 'modules/gallery/controllers/admin_sidebar.php')
| -rw-r--r-- | modules/gallery/controllers/admin_sidebar.php | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/modules/gallery/controllers/admin_sidebar.php b/modules/gallery/controllers/admin_sidebar.php index 6c8d15f1..77e83bc2 100644 --- a/modules/gallery/controllers/admin_sidebar.php +++ b/modules/gallery/controllers/admin_sidebar.php @@ -37,7 +37,7 @@ class Admin_Sidebar_Controller extends Admin_Controller {      foreach ($this->input->get("block", array()) as $block_id) {        $active_blocks[md5($block_id)] = explode(":", (string) $block_id);      } -    block_manager::set_active("site.sidebar", $active_blocks); +    block_manager::set_active("site_sidebar", $active_blocks);      $result = array("result" => "success");      list($available, $active) = $this->_get_blocks(); @@ -55,7 +55,7 @@ class Admin_Sidebar_Controller extends Admin_Controller {    private function _get_blocks() {      $active_blocks = array();      $available_blocks = block_manager::get_available_site_blocks(); -    foreach (block_manager::get_active("site.sidebar") as $block) { +    foreach (block_manager::get_active("site_sidebar") as $block) {        $id = "{$block[0]}:{$block[1]}";        if (!empty($available_blocks[$id])) {          $active_blocks[$id] = $available_blocks[$id]; | 
