Revision 1533
Added by Dietmar almost 13 years ago
install.php | ||
---|---|---|
76 | 76 |
$droplet = implode ( "\n", $cArray ); |
77 | 77 |
$name = substr($dropfile,0,-4); |
78 | 78 |
$modified_when = time(); |
79 |
$modified_by = method_exists($admin, 'get_user_id') ? $admin->get_user_id() : 1;
|
|
79 |
$modified_by = (method_exists($admin, 'get_user_id') ? $admin->get_user_id() : 1);
|
|
80 | 80 |
$sql = 'INSERT INTO `'.TABLE_PREFIX.'mod_droplets` SET '; |
81 | 81 |
$sql .= '`name` = \''.$name.'\', '; |
82 | 82 |
$sql .= '`code` = \''.$droplet.'\', '; |
... | ... | |
88 | 88 |
$database->query($sql); |
89 | 89 |
|
90 | 90 |
// do not output anything if this script is called during fresh installation |
91 |
if (method_exists($admin, 'get_user_id')) echo "Droplet import: $name<br/>"; |
|
91 |
// if (method_exists($admin, 'get_user_id')) echo "Droplet import: $name<br/>";
|
|
92 | 92 |
} |
93 | 93 |
} |
94 | 94 |
|
Also available in: Unified diff
new backend theme handling (Tks to Stefek)
some fixes in install