Updating constructor: "PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dBug has a deprecated constructor"

This commit is contained in:
Julian Haagsma 2016-10-21 12:35:44 -06:00
parent 4a1bb162c0
commit 07bac892c4

View file

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