First step of conversion to wxPHP
This commit is contained in:
parent
a116a0fd58
commit
f54669817a
@ -23,7 +23,7 @@
|
|||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
|
|
||||||
// Suppress errors that php-gtk puts out
|
// Suppress errors that php-gtk puts out
|
||||||
error_reporting(-1 & ~(E_STRICT));
|
error_reporting(-1);
|
||||||
|
|
||||||
// Set the stupid timezone so PHP shuts up.
|
// Set the stupid timezone so PHP shuts up.
|
||||||
date_default_timezone_set('GMT');
|
date_default_timezone_set('GMT');
|
||||||
@ -62,9 +62,9 @@ register_shutdown_function('log_fatal');
|
|||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
|
|
||||||
// Make sure php-gtk works
|
// 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();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -149,9 +149,10 @@ require_once(BASE_DIR . "/db/autoload.php");
|
|||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
|
|
||||||
// Create the main window
|
// Create the main window
|
||||||
new Main();
|
$app = new Main();
|
||||||
|
|
||||||
// Start the GTK event loop
|
// Start the wx event loop
|
||||||
GTK::main();
|
wxApp::SetInstance($app);
|
||||||
|
wxEntry();
|
||||||
|
|
||||||
// End of index.php
|
// End of index.php
|
Reference in New Issue
Block a user