projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93073ca
)
UpdateDatabase.php
author
Alan Knowles
<alan@roojs.com>
Fri, 6 Dec 2013 09:03:25 +0000
(17:03 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 6 Dec 2013 09:03:25 +0000
(17:03 +0800)
UpdateDatabase.php
patch
|
blob
|
history
diff --git
a/UpdateDatabase.php
b/UpdateDatabase.php
index
dcc5e38
..
2b6758d
100644
(file)
--- a/
UpdateDatabase.php
+++ b/
UpdateDatabase.php
@@
-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);