projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a1ea14
)
UpdateDatabase.php
author
Alan Knowles
<alan@akbkhome.com>
Wed, 9 May 2012 08:58:55 +0000
(16:58 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 9 May 2012 08:58:55 +0000
(16:58 +0800)
UpdateDatabase.php
patch
|
blob
|
history
diff --git
a/UpdateDatabase.php
b/UpdateDatabase.php
index
d9d8e97
..
0c5b843
100644
(file)
--- a/
UpdateDatabase.php
+++ b/
UpdateDatabase.php
@@
-120,16
+120,16
@@
class Pman_Core_UpdateDatabase extends Pman
$fd = $this->rootDir. "/Pman/$m/sql";
foreach(glob($fd.'/*.sql') as $fn) {
-
-
-
$cmd = "$mysql_cmd -f < " . escapeshellarg($fn) ;
-
echo $cmd. ($this->cli ? "\n" : "<BR>\n");
-
passthru($cmd);
+ }
+ $fd = $this->rootDir. "/Pman/$m/mysql";
-
+ foreach(glob($fd.'/*.sql') as $fn) {
+ $cmd = "$mysql_cmd -f < " . escapeshellarg($fn) ;
+ echo $cmd. ($this->cli ? "\n" : "<BR>\n");
+ passthru($cmd);
}