Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
ac4ee017
Commit
ac4ee017
authored
12 years ago
by
Marcos García de La Fuente
Browse files
Options
Downloads
Patches
Plain Diff
mod_syslog_syslog class shouldn't be active if openlog is not available
parent
df2262f8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/core/modules/syslog/mod_syslog_syslog.php
+6
-6
6 additions, 6 deletions
htdocs/core/modules/syslog/mod_syslog_syslog.php
with
6 additions
and
6 deletions
htdocs/core/modules/syslog/mod_syslog_syslog.php
+
6
−
6
View file @
ac4ee017
...
...
@@ -35,6 +35,12 @@ class mod_syslog_syslog extends LogHandler implements LogHandlerInterface
*/
public
function
isActive
()
{
// This function does not exists on some ISP (Ex: Free in France)
if
(
!
function_exists
(
'openlog'
))
{
return
false
;
}
return
true
;
}
...
...
@@ -85,12 +91,6 @@ class mod_syslog_syslog extends LogHandler implements LogHandlerInterface
*/
public
function
export
(
$content
)
{
// This function does not exists on some ISP (Ex: Free in France)
if
(
!
function_exists
(
'openlog'
))
{
throw
new
Exception
(
'Function openlog is not available in this server'
);
}
if
(
defined
(
"SYSLOG_FACILITY"
)
&&
constant
(
"SYSLOG_FACILITY"
))
{
if
(
constant
(
constant
(
'SYSLOG_FACILITY'
)))
...
...
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