File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 54
54
* --------
55
55
* 07/07/2020 - class declaration changed to PHP5-7
56
56
* 07/07/2020 - undefined var fix
57
+ * 02/10/2020 - removed using of globals array
57
58
*/
58
59
59
60
/* load classes
76
77
77
78
// class variable emulation
78
79
// cf. http://www.webkreator.com/php/techniques/php-static-class-variables.html
79
- $ GLOBALS [ ' _transient ' ][ ' static ' ][ ' nusoap_base ' ][ ' globalDebugLevel ' ] = 9 ;
80
+
80
81
81
82
/**
82
83
*
@@ -229,7 +230,7 @@ class nusoap_base {
229
230
* @access public
230
231
*/
231
232
function __construct () {
232
- $ this ->debugLevel = $ GLOBALS [ ' _transient ' ][ ' static ' ][ ' nusoap_base ' ][ ' globalDebugLevel ' ] ;
233
+ $ this ->debugLevel = 9 ;
233
234
}
234
235
235
236
/**
@@ -239,7 +240,7 @@ function __construct() {
239
240
* @access public
240
241
*/
241
242
function getGlobalDebugLevel () {
242
- return $ GLOBALS [ ' _transient ' ][ ' static ' ][ ' nusoap_base ' ][ ' globalDebugLevel ' ] ;
243
+ return $ this -> debugLevel ;
243
244
}
244
245
245
246
/**
@@ -249,7 +250,7 @@ function getGlobalDebugLevel() {
249
250
* @access public
250
251
*/
251
252
function setGlobalDebugLevel ($ level ) {
252
- $ GLOBALS [ ' _transient ' ][ ' static ' ][ ' nusoap_base ' ][ ' globalDebugLevel ' ] = $ level ;
253
+ $ this -> debugLevel = $ level ;
253
254
}
254
255
255
256
/**
You can’t perform that action at this time.
0 commit comments