diff --git a/src/index.php b/src/index.php index 8c4d708..9a4e85e 100644 --- a/src/index.php +++ b/src/index.php @@ -21,7 +21,7 @@ // -------------------------------------------------------------------------- // Suppress errors that php-gtk puts out -error_reporting(-1 & ~(E_STRICT | E_DEPRECATED)); +error_reporting(-1 & ~(E_STRICT)); // Set the stupid timezone so PHP shuts up. date_default_timezone_set('GMT'); @@ -56,7 +56,7 @@ register_shutdown_function('log_fatal'); // Make sure php-gtk works if ( ! class_exists('gtk')) { - trigger_error("PHP-gtk not found. Please load the php-gtk2 module in your php.ini", E_USER_ERROR); + trigger_error("PHP-gtk not found. Please load the php-gtk2 extension in your php.ini", E_USER_ERROR); die(); } diff --git a/src/windows/add_db.php b/src/windows/add_db.php index 4221efc..80d7153 100644 --- a/src/windows/add_db.php +++ b/src/windows/add_db.php @@ -25,6 +25,7 @@ class Add_DB extends GtkWindow { $this->settings = new Settings(); + $this->set_position(Gtk::WIN_POS_CENTER); $this->set_title("Add Database Connection"); // Add the Vbox, and show the window