issue119, fixed auto-completetion script-url containing  
[phpfspot.git] / phpfspot_db.php
index e5f1f0bd3bc1488c547658a6e62677bcd042c271..e0cf39f31a89df601b5352608849228cfdd7ad90 100644 (file)
  *
  ***************************************************************************/
 
+/**
+ * PHPFSPOT_DB class
+ *
+ * @package phpfspot
+ */
 class PHPFSPOT_DB {
 
    private $db;
@@ -38,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 */