Added useful function 'is_metaconsole' in functions.php

This commit is contained in:
mdtrooper 2015-07-10 15:00:12 +02:00
parent 57e64d4a8a
commit f3d6513c65
1 changed files with 9 additions and 0 deletions

View File

@ -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.
*