fix export, web_path was not set correctly
[phpfspot.git] / phpfspot_db.php
index 83376ad53e779d99dd8067db0f7ec53f2bd5152c..e0cf39f31a89df601b5352608849228cfdd7ad90 100644 (file)
@@ -24,6 +24,7 @@
 
 /**
  * PHPFSPOT_DB class
+ *
  * @package phpfspot
  */
 class PHPFSPOT_DB {
@@ -42,7 +43,9 @@ class PHPFSPOT_DB {
     */
    public function __construct($parent, $db_path)
    {
-      $this->parent = $parent;
+      global $phpfspot;
+
+      $this->parent = $phpfspot;
       $this->db_path = $db_path;
 
       /* We are starting disconnected */