From b202816324c3a6bf515a8d938c33e882106f26da Mon Sep 17 00:00:00 2001
From: Tim Almdal
Date: Fri, 12 Dec 2008 01:46:43 +0000
Subject: Remove the attempt at a local import module
---
core/controllers/welcome.php | 6 --
core/views/welcome.html.php | 7 ---
modules/local_import/controllers/local_import.php | 34 ----------
.../controllers/local_import_admin.php | 56 -----------------
modules/local_import/css/local_import.css | 70 ---------------------
modules/local_import/helpers/local_import.php | 49 ---------------
.../local_import/helpers/local_import_block.php | 30 ---------
.../helpers/local_import_installer.php | 41 ------------
modules/local_import/images/bin_closed.png | Bin 363 -> 0 bytes
modules/local_import/js/local_import.js | 67 --------------------
.../local_import/views/local_import_admin.html.php | 12 ----
.../views/local_import_dir_list.html.php | 9 ---
12 files changed, 381 deletions(-)
delete mode 100644 modules/local_import/controllers/local_import.php
delete mode 100644 modules/local_import/controllers/local_import_admin.php
delete mode 100644 modules/local_import/css/local_import.css
delete mode 100644 modules/local_import/helpers/local_import.php
delete mode 100644 modules/local_import/helpers/local_import_block.php
delete mode 100644 modules/local_import/helpers/local_import_installer.php
delete mode 100644 modules/local_import/images/bin_closed.png
delete mode 100644 modules/local_import/js/local_import.js
delete mode 100644 modules/local_import/views/local_import_admin.html.php
delete mode 100644 modules/local_import/views/local_import_dir_list.html.php
diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php
index 3f70e1dc..b5215a02 100644
--- a/core/controllers/welcome.php
+++ b/core/controllers/welcome.php
@@ -35,18 +35,12 @@ class Welcome_Controller extends Template_Controller {
->where("type", "photo")->orderby("level", "desc")->find();
$this->template->album_tree = $this->_load_album_tree();
$this->template->add_photo_html = $this->_get_add_photo_html();
- if (module::is_installed("local_import")) {
- $this->template->local_import_html = $this->_get_local_import_html();
- } else {
- $this->template->local_import_html = "";
- }
} catch (Exception $e) {
$this->template->album_count = 0;
$this->template->photo_count = 0;
$this->template->deepest_photo = null;
$this->template->album_tree = array();
$this->template->add_photo_html = "";
- $this->template->local_import_html = "";
}
$this->_load_user_info();
diff --git a/core/views/welcome.html.php b/core/views/welcome.html.php
index d412d119..360dc1ec 100644
--- a/core/views/welcome.html.php
+++ b/core/views/welcome.html.php
@@ -157,9 +157,6 @@
= html::script("lib/jquery.form.js") ?>
= html::script("lib/jquery.cookie.js") ?>
= html::script("lib/jquery.MultiFile.js") ?>
- if (class_exists("local_import_block")): ?>
- = local_import_block::head(null) ?>
- endif ?>
if (class_exists("rearrange_block")): ?>
= rearrange_block::head(null) ?>
endif ?>
@@ -263,10 +260,6 @@
] tags
= $add_photo_html ?>
-