Change dBug constructor function

In order to prevent the error message.
"Methods with the same name as their class will
not be constructors in a future version of PHP"
This commit is contained in:
Marcus Puchalla 2017-08-22 11:35:55 +02:00
parent 86dacf8204
commit d85f1013bd

View file

@ -66,7 +66,7 @@ class dBug {
var $arrHistory = array();
//constructor
function dBug($var,$forceType="",$bCollapsed=false, $reinit = false) {
function __construct($var,$forceType="",$bCollapsed=false, $reinit = false) {
//include js and css scripts
if(!defined('BDBUGINIT') || $reinit) {
if(!defined('BDBUGINIT')){