diff options
Diffstat (limited to 'lib/installer.php')
-rw-r--r-- | lib/installer.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/installer.php b/lib/installer.php index 441f72660..ad1989f4e 100644 --- a/lib/installer.php +++ b/lib/installer.php @@ -341,6 +341,7 @@ abstract class Installer } $schema->ensureTable($name, $def); } + return true; } /** @@ -441,11 +442,12 @@ abstract class Installer if (!mb_strlen($stmt)) { continue; } - $res = $conn->execute($stmt); - if (DB::isError($res)) { - $error = $result->getMessage(); + try { + $res = $conn->simpleQuery($stmt); + } catch (Exception $e) { + $error = $e->getMessage(); $this->updateStatus("ERROR ($error) for SQL '$stmt'"); - return $res; + return false; } } return true; @@ -458,9 +460,6 @@ abstract class Installer */ function registerInitialUser() { - define('STATUSNET', true); - define('LACONICA', true); // compatibility - require_once INSTALLDIR . '/lib/common.php'; $data = array('nickname' => $this->adminNick, |