DataObjects/Core_curr_rate.php
[Pman.Core] / UpdateDatabase.php
index 52033a9..62bb5d8 100644 (file)
@@ -178,7 +178,7 @@ class Pman_Core_UpdateDatabase extends Pman
         //$this->{'import' . $url['scheme']}($url);
         
         $dbtype = $dburl['scheme'];
-        $dirmethod = 'import' . $dburl['scheme'] . '.dir';
+        $dirmethod = 'import' . $dburl['scheme'] . 'dir';
         
         
        
@@ -205,7 +205,7 @@ class Pman_Core_UpdateDatabase extends Pman
                 $x = new $class;
                 if(method_exists($x, 'importModuleSQL')){
                     echo "Importing SQL from module $m using Module::importModuleSQL\n";
-                    $x->opts = $this->opts();
+                    $x->opts = $this->opts;
                     $x->rootDir = $this->rootDir;
                     $x->importModuleSQL($dburl);
                     continue;
@@ -258,6 +258,8 @@ class Pman_Core_UpdateDatabase extends Pman
     
     function importpgsqldir($url, $dir, $disable_triggers = false)
     {
+        $ff = HTML_FlexyFramework::get();
+        
         require_once 'System.php';
         $cat = System::which('cat');
         $psql = System::which('psql');
@@ -313,7 +315,7 @@ class Pman_Core_UpdateDatabase extends Pman
 
             $cmd = "$psql_cmd  < " . escapeshellarg($fn ? $fn : $bfn) . ' 2>&1' ;
 
-            echo "$bfn:   $cmd ". ($this->cli ? "\n" : "<BR>\n");
+            echo "$bfn:   $cmd ". ($ff->cli ? "\n" : "<BR>\n");
 
 
             passthru($cmd);