Skip to content

Commit dd1507a

Browse files
committed
removed goaccess_delete from function delete
1 parent aaedeeb commit dd1507a

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
@@ -1939,6 +1939,11 @@ function update($event_name, $data) {
19391939
$this->goaccess_update($data, $web_config);
19401940
}
19411941

1942+
//* Remove the AWstats configuration file
1943+
if($data['old']['stats_type'] == 'awstats') {
1944+
$this->awstats_delete($data, $web_config);
1945+
}
1946+
19421947
//* Remove the GoAccess configuration file
19431948
if($data['old']['stats_type'] == 'goaccess') {
19441949
$this->goaccess_delete($data, $web_config);
@@ -2335,11 +2340,6 @@ function delete($event_name, $data) {
23352340
$this->awstats_delete($data, $web_config);
23362341
}
23372342

2338-
//* Remove the GoAccess configuration file
2339-
if($data['old']['stats_type'] == 'goaccess') {
2340-
$this->goaccess_delete($data, $web_config);
2341-
}
2342-
23432343
//* Delete the web-backups
23442344
if($data['old']['type'] == 'vhost') {
23452345
$server_config = $app->getconf->get_server_config($conf['server_id'], 'server');

0 commit comments

Comments
 (0)