UpdateDatabase.php
authorAlan Knowles <alan@roojs.com>
Fri, 6 Dec 2013 09:03:25 +0000 (17:03 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 6 Dec 2013 09:03:25 +0000 (17:03 +0800)
UpdateDatabase.php

index dcc5e38..2b6758d 100644 (file)
@@ -511,8 +511,8 @@ class Pman_Core_UpdateDatabase extends Pman
             if (!preg_match('/^json-/', $o) || empty($v)) {
                 continue;
             }
-            $type = str_replace('_', '-', substr($o,6));
-            var_dump($type);
+            $type = str_replace('_', '-', substr($o,5));
+            
             $data= json_decode(file_get_contents($v),true);
             
             DB_DataObject::factory($type)->importFromArray($this,$data,$opts);