From 4dfc5435ef8673d0639c16375980426809599c99 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Wed, 11 Mar 2009 14:38:52 +0000 Subject: Fix ticket #69. Rather than giving a better error message when the gallery3 database is not setup. Just redirect to the installer. --- core/hooks/init_gallery.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/hooks') diff --git a/core/hooks/init_gallery.php b/core/hooks/init_gallery.php index 13c61256..56c19f04 100644 --- a/core/hooks/init_gallery.php +++ b/core/hooks/init_gallery.php @@ -17,6 +17,12 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ + +if (!file_exists(VARPATH . "database.php")) { + header("Location: ../installer"); + exit(); +} + Event::add("system.ready", array("I18n", "instance")); Event::add("system.post_routing", array("theme", "load_themes")); Event::add("system.ready", array("module", "load_modules")); -- cgit v1.2.3