Skip to content

Commit d2f8d34

Browse files
committed
Fixed: FS#1604 - Awstats is always in english
1 parent 2b81b8f commit d2f8d34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/cron_daily.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ function setConfigVar( $filename, $varName, $varValue ) {
201201
symlink($logfile,'/var/log/ispconfig/httpd/'.$domain.'/yesterday-access.log');
202202

203203
// awstats_buildstaticpages.pl -update -config=mydomain.com -lang=en -dir=/var/www/domain.com/web/stats -awstatsprog=/path/to/awstats.pl
204-
$command = "$awstats_buildstaticpages_pl -update -config='$domain' -lang=en -dir='$statsdir' -awstatsprog='$awstats_pl'";
204+
$command = "$awstats_buildstaticpages_pl -update -config='$domain' -lang=".$conf['language']." -dir='$statsdir' -awstatsprog='$awstats_pl'";
205205

206206
if($awstats_pl != '' && $awstats_buildstaticpages_pl != '' && fileowner($awstats_pl) == 0 && fileowner($awstats_buildstaticpages_pl) == 0) {
207207
exec($command);

0 commit comments

Comments
 (0)