projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5092157
)
UpdateDatabase.php
author
Edward
<edward@roojs.com>
Wed, 22 May 2013 10:39:11 +0000
(18:39 +0800)
committer
Edward
<edward@roojs.com>
Wed, 22 May 2013 10:39:11 +0000
(18:39 +0800)
UpdateDatabase.php
patch
|
blob
|
history
diff --git
a/UpdateDatabase.php
b/UpdateDatabase.php
index
b9c5bae
..
e2a2afc
100644
(file)
--- a/
UpdateDatabase.php
+++ b/
UpdateDatabase.php
@@
-79,9
+79,9
@@
class Pman_Core_UpdateDatabase extends Pman
die("can not found account json file : {$opt['source']} \n");
}
- $accounts = json_decode(file_get_contents($
source
),true);
+ $accounts = json_decode(file_get_contents($
opt['source']
),true);
- DB_DataObject::factory('accnt')->importFrom
Json($opt['source']
);
+ DB_DataObject::factory('accnt')->importFrom
Array($accounts
);
die("DONE! \n");
}