From: Cash Costello Date: Sat, 22 Oct 2011 01:03:37 +0000 (-0400) Subject: don't set default filestore if we don't have a dataroot X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=7ef727bfa242015d3ca7ab22671ec020006f0b4e;p=lorea%2Felgg.git don't set default filestore if we don't have a dataroot --- 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"); }