From: Andreas Unterkircher Date: Fri, 9 Nov 2007 17:01:32 +0000 (+0000) Subject: import phpfspot config first before checking requirements X-Git-Tag: phpfspot-1.2~39 X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=commitdiff_plain;h=c6c2fa93297693a7c02a5e5419a26609ec7e97bd;ds=inline import phpfspot config first before checking requirements git-svn-id: file:///var/lib/svn/phpfspot/trunk@299 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- diff --git a/phpfspot.class.php b/phpfspot.class.php index 4b033f6..9ec2254 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -42,13 +42,13 @@ class PHPFSPOT { */ public function __construct() { + $this->cfg = new PHPFSPOT_CFG; + /* Check necessary requirements */ if(!$this->checkRequirements()) { exit(1); } - $this->cfg = new PHPFSPOT_CFG; - $this->db = new PHPFSPOT_DB($this, $this->cfg->fspot_db); if(!is_writeable(dirname($this->cfg->phpfspot_db))) {