Index: branches/5.2.x/core/kernel/db/db_connection.php =================================================================== diff -u -N -r15435 -r15518 --- branches/5.2.x/core/kernel/db/db_connection.php (.../db_connection.php) (revision 15435) +++ branches/5.2.x/core/kernel/db/db_connection.php (.../db_connection.php) (revision 15518) @@ -1,6 +1,6 @@ Application->redirectToMaintenance(); - throw new Exception($error_msg); + throw new RuntimeException($error_msg); } $this->connectionOpened = false; Index: branches/5.2.x/core/kernel/utility/temp_handler.php =================================================================== diff -u -N -r15144 -r15518 --- branches/5.2.x/core/kernel/utility/temp_handler.php (.../temp_handler.php) (revision 15144) +++ branches/5.2.x/core/kernel/utility/temp_handler.php (.../temp_handler.php) (revision 15518) @@ -1,6 +1,6 @@ Application->makeClass( 'kDBConnection', Array (SQL_TYPE, Array (&$this->Application, 'handleSQLError')) ); + $connection = $this->Application->makeClass( 'kDBConnection', Array (SQL_TYPE, Array ($this->Application, 'handleSQLError')) ); /* @var $connection kDBConnection */ $connection->debugMode = $this->Application->isDebugMode();