Index: branches/5.3.x/core/kernel/db/db_load_balancer.php =================================================================== diff -u -N -r15931 -r15956 --- branches/5.3.x/core/kernel/db/db_load_balancer.php (.../db_load_balancer.php) (revision 15931) +++ branches/5.3.x/core/kernel/db/db_load_balancer.php (.../db_load_balancer.php) (revision 15956) @@ -1,6 +1,6 @@ dbType = $db_type; - $this->errorHandler = $error_handler; + $this->setErrorHandler($error_handler); $this->DBClusterTimeout *= 1e6; // convert to milliseconds } /** + * Sets new error handler. + * + * @param mixed $error_handler Error handler. + * + * @return self + */ + public function setErrorHandler($error_handler) + { + $this->errorHandler = $error_handler; + + return $this; + } + + /** * Setups load balancer according given configuration. * * @param Array $config