Added useful function 'is_metaconsole' in functions.php
This commit is contained in:
parent
57e64d4a8a
commit
f3d6513c65
|
@ -1315,6 +1315,15 @@ function safe_sql_string($string) {
|
|||
}
|
||||
}
|
||||
|
||||
function is_metaconsole() {
|
||||
global $config;
|
||||
|
||||
if ($config['metaconsole'])
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if current execution is under an AJAX request.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue