From 2a1db64b3ab5e0050807f7f9dbcfe29b72809aaa Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 12 Feb 2019 14:50:15 +0100 Subject: Migrate old style constructors to __construct, temporary transition functions for it_dbi (map, mapgen) and it_user (ad, login_user) --- it_debug.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_debug.class') diff --git a/it_debug.class b/it_debug.class index c508b5e..8dc12c2 100644 --- a/it_debug.class +++ b/it_debug.class @@ -30,7 +30,7 @@ class it_debug * Constructor * @param $level Debug level. All debug() calls with a level <= $level are shown. */ -function it_debug($level=0) +function __construct($level=0) { $this->level = isset($GLOBALS['debug_level']) ? $GLOBALS['debug_level'] : $level; } -- cgit v1.2.3