From 7ef727bfa242015d3ca7ab22671ec020006f0b4e Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Fri, 21 Oct 2011 21:03:37 -0400 Subject: don't set default filestore if we don't have a dataroot --- engine/lib/filestore.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/engine/lib/filestore.php b/engine/lib/filestore.php index a7aa1ff8c..a13d8aa27 100644 --- a/engine/lib/filestore.php +++ b/engine/lib/filestore.php @@ -483,8 +483,10 @@ function filestore_init() { global $CONFIG; // Now register a default filestore - set_default_filestore(new ElggDiskFilestore($CONFIG->dataroot)); - + if (isset($CONFIG->dataroot)) { + set_default_filestore(new ElggDiskFilestore($CONFIG->dataroot)); + } + // Now run this stuff, but only once run_function_once("filestore_run_once"); } -- cgit v1.2.3