projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a588da
)
UpdateDatabase.php
author
Edward
<edward@roojs.com>
Wed, 22 May 2013 07:17:12 +0000
(15:17 +0800)
committer
Edward
<edward@roojs.com>
Wed, 22 May 2013 07:17:12 +0000
(15:17 +0800)
UpdateDatabase.php
patch
|
blob
|
history
diff --git
a/UpdateDatabase.php
b/UpdateDatabase.php
index
3e8ad19
..
2a63553
100644
(file)
--- a/
UpdateDatabase.php
+++ b/
UpdateDatabase.php
@@
-57,7
+57,9
@@
class Pman_Core_UpdateDatabase extends Pman
function get($args, $opt)
{
if($args == 'Person'){
- print_r($opt);exit;
+ if(empty($opt['source']) || empty($opt['prefix'])){
+ die("Missing Source directory for json files or prefix for the passwrod! Try -f [JSON file path] -p [prefix]");
+ }
}
$this->importSQL();
$this->runUpdateModulesData();