Skip to content

Commit 03b6cc5

Browse files
committed
also update the nginx plugin
1 parent 20148d6 commit 03b6cc5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

server/plugins-available/nginx_plugin.inc.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1940,18 +1940,18 @@ function update($event_name, $data) {
19401940
}
19411941

19421942
//* Remove the AWstats configuration file
1943-
if($data['old']['stats_type'] == 'awstats') {
1944-
$this->awstats_delete($data, $web_config);
1943+
if($data['old']['stats_type'] == 'awstats' && $data['new']['stats_type'] != 'awstats') {
1944+
$this->awstats_delete($data, $web_config);
19451945
}
19461946

19471947
//* Remove the GoAccess configuration file
1948-
if($data['old']['stats_type'] == 'goaccess') {
1948+
if($data['old']['stats_type'] == 'goaccess' && $data['new']['stats_type'] != 'goaccess') {
19491949
$this->goaccess_delete($data, $web_config);
19501950
}
19511951

19521952
//* Remove the Webalizer configuration file
1953-
if($data['old']['stats_type'] == 'webalizer') {
1954-
$this->webalizer_delete($data, $web_config);
1953+
if($data['old']['stats_type'] == 'webalizer' && $data['new']['stats_type'] != 'webalizer') {
1954+
$this->webalizer_delete($data, $web_config);
19551955
}
19561956

19571957
//* Remove Stats-Folder when Statistics set to none

0 commit comments

Comments
 (0)