diff --git a/OpenSQLManager.php b/OpenSQLManager.php index ff04374..dc668e5 100644 --- a/OpenSQLManager.php +++ b/OpenSQLManager.php @@ -23,7 +23,7 @@ // -------------------------------------------------------------------------- // Suppress errors that php-gtk puts out -error_reporting(-1 & ~(E_STRICT)); +error_reporting(-1); // Set the stupid timezone so PHP shuts up. date_default_timezone_set('GMT'); @@ -62,9 +62,9 @@ register_shutdown_function('log_fatal'); // -------------------------------------------------------------------------- // Make sure php-gtk works -if ( ! class_exists('gtk')) +if ( ! class_exists('wxApp')) { - trigger_error("PHP-gtk not found. Please load the php-gtk2 extension in your php.ini", E_USER_ERROR); + trigger_error("wxPHP not found. Please load the wxPHP extension in your php.ini", E_USER_ERROR); die(); } @@ -149,9 +149,10 @@ require_once(BASE_DIR . "/db/autoload.php"); // -------------------------------------------------------------------------- // Create the main window -new Main(); +$app = new Main(); -// Start the GTK event loop -GTK::main(); +// Start the wx event loop +wxApp::SetInstance($app); +wxEntry(); // End of index.php \ No newline at end of file