Skip to content

Commit 94087a5

Browse files
author
Marius Burkard
committed
- main sql file of addons not loaded
1 parent 15c1404 commit 94087a5

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

server/lib/classes/ispconfig_addon_installer_base.inc.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,6 @@ protected function copyAddonFiles() {
109109
protected function executeSqlStatements() {
110110
global $app, $conf;
111111

112-
$app->log('Adding addon entry to db.', 0, false);
113-
// create addon entry if not existing
114-
$qry = 'INSERT IGNORE INTO `addons` (`addon_ident`, `addon_version`, `addon_name`, `db_version`) VALUES (?, ?, ?, ?)';
115-
$app->db->query($qry, $this->addon_ident, $this->addon_version, $this->addon_name, 0);
116-
117112
$incremental = false;
118113
$check = $app->db->queryOneRecord('SELECT `db_version` FROM `addons` WHERE `addon_ident` = ?', $this->addon_ident);
119114
if($check) {
@@ -124,6 +119,10 @@ protected function executeSqlStatements() {
124119
}
125120
}
126121

122+
$app->log('Adding addon entry to db.', 0, false);
123+
// create addon entry if not existing
124+
$qry = 'INSERT IGNORE INTO `addons` (`addon_ident`, `addon_version`, `addon_name`, `db_version`) VALUES (?, ?, ?, ?)';
125+
$app->db->query($qry, $this->addon_ident, $this->addon_version, $this->addon_name, 0);
127126

128127
$mysql_command = 'mysql --default-character-set=' . escapeshellarg($conf['db_charset']) . ' --force -h ' . escapeshellarg($conf['db_host']) . ' -u ' . escapeshellarg($conf['db_user']) . ' -p' . escapeshellarg($conf['db_password']) . ' -P ' . escapeshellarg($conf['db_port']) . ' -D ' . escapeshellarg($conf['db_database']);
129128

0 commit comments

Comments
 (0)