Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Webslice
ISPConfig 3
Commits
24b60e9c
Commit
24b60e9c
authored
Sep 02, 2019
by
Marius Burkard
Browse files
- fixed problem when running cron_debug.php
- fixed php warning on awstats cron
parent
4666bfeb
Changes
2
Show whitespace changes
Inline
Side-by-side
server/lib/classes/cron.d/150-awstats.inc.php
View file @
24b60e9c
...
...
@@ -148,7 +148,9 @@ class cronjob_awstats extends cronjob {
}
$statsdirold
=
$statsdir
.
"/"
.
$awyear
.
"-"
.
$awmonth
.
"/"
;
if
(
!
is_dir
(
$statsdirold
))
{
mkdir
(
$statsdirold
);
}
$files
=
scandir
(
$statsdir
);
foreach
(
$files
as
$file
)
{
if
(
substr
(
$file
,
0
,
1
)
!=
"."
&&
!
is_dir
(
"
$statsdir
"
.
"/"
.
"
$file
"
)
&&
substr
(
$file
,
0
,
1
)
!=
"w"
&&
substr
(
$file
,
0
,
1
)
!=
"i"
)
copy
(
"
$statsdir
"
.
"/"
.
"
$file
"
,
"
$statsdirold
"
.
"
$file
"
);
...
...
server/lib/classes/cronjob.inc.php
View file @
24b60e9c
...
...
@@ -174,7 +174,7 @@ class cronjob {
}
// child classes may NOT override this!
pr
ivate
function
onCompleted
()
{
pr
otected
function
onCompleted
()
{
global
$app
,
$conf
;
if
(
$conf
[
'log_priority'
]
<=
LOGLEVEL_DEBUG
)
print
"Called onCompleted() for class "
.
get_class
(
$this
)
.
"
\n
"
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment