diff options
Diffstat (limited to 'modules/info')
-rw-r--r-- | modules/info/helpers/info_block.php | 2 | ||||
-rw-r--r-- | modules/info/helpers/info_installer.php | 32 |
2 files changed, 1 insertions, 33 deletions
diff --git a/modules/info/helpers/info_block.php b/modules/info/helpers/info_block.php index 558c32f1..3a853609 100644 --- a/modules/info/helpers/info_block.php +++ b/modules/info/helpers/info_block.php @@ -23,7 +23,7 @@ class info_block_Core { } static function get($block_id, $theme) { - $block = new Block(); + $block = ""; switch ($block_id) { case "metadata": if ($theme->item()) { diff --git a/modules/info/helpers/info_installer.php b/modules/info/helpers/info_installer.php deleted file mode 100644 index d77908d0..00000000 --- a/modules/info/helpers/info_installer.php +++ /dev/null @@ -1,32 +0,0 @@ -<?php defined("SYSPATH") or die("No direct script access."); -/** - * Gallery - a web based photo album viewer and editor - * Copyright (C) 2000-2009 Bharat Mediratta - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or (at - * your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ -class info_installer { - static function install() { - block_manager::add("site.sidebar", "info", "metadata"); - module::set_version("info", 2); - } - - static function upgrade($version) { - if ($version == 1) { - block_manager::add("site.sidebar", "info", "metadata"); - module::set_version("info", 2); - } - } -} |