Doxygen and bugfix

This commit is contained in:
Michael 2017-09-30 17:42:03 +00:00
parent 2971501f63
commit 3354f01ed5
2 changed files with 8 additions and 3 deletions

View File

@ -591,6 +591,11 @@ function is_ajax() {
return (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest'); return (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest');
} }
/**
* @brief Function to check if request was an AJAX (xmlhttprequest) request.
*
* @param $via_worker boolean Is the check run via the poller?
*/
function check_db($via_worker) { function check_db($via_worker) {
$build = get_config('system', 'build'); $build = get_config('system', 'build');

View File

@ -32,6 +32,9 @@ function poller_run($argv, $argc){
Config::load(); Config::load();
// Check the database structure and possibly fixes it
check_db(true);
// Quit when in maintenance // Quit when in maintenance
if (Config::get('system', 'maintenance', true)) { if (Config::get('system', 'maintenance', true)) {
return; return;
@ -890,9 +893,6 @@ function poller_run_cron() {
} }
if (array_search(__file__,get_included_files())===0) { if (array_search(__file__,get_included_files())===0) {
// Check the database structure and possibly fixes it
check_db(true);
poller_run($_SERVER["argv"],$_SERVER["argc"]); poller_run($_SERVER["argv"],$_SERVER["argc"]);
poller_unclaim_process(); poller_unclaim_process();