Private GIT

Skip to content
Snippets Groups Projects
Commit f13cb3ea authored by loiclau's avatar loiclau
Browse files

* fix knowledge cron compatibility php < 5.4 and check api configuration

parent edfa60e8
No related merge requests found
......@@ -35,4 +35,5 @@
require_once realpath(dirname(__FILE__) . "/../www/class/centreon-knowledge/wikiApi.class.php");
(New WikiApi)->synchronize();
\ No newline at end of file
$wikiApi = new WikiApi();
$wikiApi->synchronize();
......@@ -90,7 +90,11 @@ class WikiApi
$version = $result['query']['general']['generator'];
$version = explode(' ', $version);
if (isset($version[1])) {
return (float)$version[1];
} else {
throw new \Exception("An error occured, please check your Knowledge base configuration");
}
}
public function login()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment