]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
don't set default filestore if we don't have a dataroot
authorCash Costello <cash.costello@gmail.com>
Sat, 22 Oct 2011 01:03:37 +0000 (21:03 -0400)
committerCash Costello <cash.costello@gmail.com>
Sat, 22 Oct 2011 01:03:37 +0000 (21:03 -0400)
engine/lib/filestore.php

index a7aa1ff8c40c74456403e1799fbd64118ec2a9ed..a13d8aa27d23e52fa798d5e61db4cce41359c385 100644 (file)
@@ -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");
 }