@@ -1624,8 +1624,6 @@ function update($event_name, $data) {
16241624 }
16251625 }
16261626
1627-
1628-
16291627 // Nginx >= 1.25.1 uses a dedicated directive to enable HTTP/2 support
16301628 // This is a quirk for Nginx legacy versions (or simply Nginx < 1.25.1) and restores the required http2 parameter in the listen directive
16311629 if (version_compare ($ app ->system ->getnginxversion (true ), '1.25.1 ' , '< ' )) {
@@ -1994,25 +1992,25 @@ function update($event_name, $data) {
19941992 $ this ->awstats_update ($ data , $ web_config );
19951993 }
19961994
1997- //* Create GoAccess configuration
1998- if ($ data ['new ' ]['stats_type ' ] == 'goaccess ' && ($ data ['new ' ]['type ' ] == 'vhost ' || $ data ['new ' ]['type ' ] == 'vhostsubdomain ' || $ data ['new ' ]['type ' ] == 'vhostalias ' )) {
1999- $ this ->goaccess_update ($ data , $ web_config );
2000- }
1995+ //* Create GoAccess configuration
1996+ if ($ data ['new ' ]['stats_type ' ] == 'goaccess ' && ($ data ['new ' ]['type ' ] == 'vhost ' || $ data ['new ' ]['type ' ] == 'vhostsubdomain ' || $ data ['new ' ]['type ' ] == 'vhostalias ' )) {
1997+ $ this ->goaccess_update ($ data , $ web_config );
1998+ }
20011999
2002- //* Remove the AWstats configuration file
2000+ //* Remove the AWstats configuration file
20032001 if ($ data ['old ' ]['stats_type ' ] == 'awstats ' && $ data ['new ' ]['stats_type ' ] != 'awstats ' ) {
20042002 $ this ->awstats_delete ($ data , $ web_config );
2005- }
2003+ }
20062004
20072005 //* Remove the GoAccess configuration file
20082006 if ($ data ['old ' ]['stats_type ' ] == 'goaccess ' && $ data ['new ' ]['stats_type ' ] != 'goaccess ' ) {
20092007 $ this ->goaccess_delete ($ data , $ web_config );
20102008 }
20112009
2012- //* Remove the Webalizer configuration file
2010+ //* Remove the Webalizer configuration file
20132011 if ($ data ['old ' ]['stats_type ' ] == 'webalizer ' && $ data ['new ' ]['stats_type ' ] != 'webalizer ' ) {
20142012 $ this ->webalizer_delete ($ data , $ web_config );
2015- }
2013+ }
20162014
20172015 //* Remove Stats-Folder when Statistics set to none
20182016 if ($ data ['new ' ]['stats_type ' ] == '' && ($ data ['new ' ]['type ' ] == 'vhost ' || $ data ['new ' ]['type ' ] == 'vhostsubdomain ' || $ data ['new ' ]['type ' ] == 'vhostalias ' )) {
0 commit comments