import phpfspot config first before checking requirements
authorAndreas Unterkircher <unki@netshadow.at>
Fri, 9 Nov 2007 17:01:32 +0000 (17:01 +0000)
committerAndreas Unterkircher <unki@netshadow.at>
Fri, 9 Nov 2007 17:01:32 +0000 (17:01 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@299 fa6a889d-dae6-447d-9e79-4ba9a3039384

phpfspot.class.php

index 4b033f612147cdcf573ede99d81f416d2ff3179c..9ec2254d9184887b3b20eb770b150bb82699cd2e 100644 (file)
@@ -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))) {