Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
centreon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
centreon
Commits
f13cb3ea
Commit
f13cb3ea
authored
8 years ago
by
loiclau
Browse files
Options
Downloads
Patches
Plain Diff
* fix knowledge cron compatibility php < 5.4 and check api configuration
parent
edfa60e8
Loading
Loading
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
cron/centKnowledgeSynchronizer.php
+2
-1
2 additions, 1 deletion
cron/centKnowledgeSynchronizer.php
www/class/centreon-knowledge/wikiApi.class.php
+5
-1
5 additions, 1 deletion
www/class/centreon-knowledge/wikiApi.class.php
with
7 additions
and
2 deletions
cron/centKnowledgeSynchronizer.php
+
2
−
1
View file @
f13cb3ea
...
...
@@ -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
();
This diff is collapsed.
Click to expand it.
www/class/centreon-knowledge/wikiApi.class.php
+
5
−
1
View file @
f13cb3ea
...
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment