Replace global $a with BaseObject::getApp()
This commit is contained in:
parent
d0780ccf7d
commit
820afa2284
17 changed files with 51 additions and 56 deletions
|
@ -519,7 +519,6 @@ $LOGGER_LEVELS = [];
|
|||
* LOGGER_DATA
|
||||
* LOGGER_ALL
|
||||
*
|
||||
* @global App $a
|
||||
* @global array $LOGGER_LEVELS
|
||||
* @param string $msg
|
||||
* @param int $level
|
||||
|
@ -590,12 +589,10 @@ function logger($msg, $level = 0) {
|
|||
* LOGGER_DATA
|
||||
* LOGGER_ALL
|
||||
*
|
||||
* @global App $a
|
||||
* @global array $LOGGER_LEVELS
|
||||
* @param string $msg
|
||||
* @param int $level
|
||||
*/
|
||||
|
||||
function dlogger($msg, $level = 0) {
|
||||
$a = get_app();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue