diff options
Diffstat (limited to 'core/hooks')
-rw-r--r-- | core/hooks/init_gallery.php | 6 |
1 files changed, 6 insertions, 0 deletions
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")); |