File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -477,6 +477,7 @@ links_anlog=Nginx Access Log
477
477
links_enlog=Nginx Error Log
478
478
links_phpini=PHP-FPM Configuration
479
479
links_phpini2=PHP $1 Configuration
480
+ links_phplog=PHP Error Log
480
481
481
482
webmin_phpini=PHP configuration for $1
482
483
webmin_phpini2=PHP $2 configuration for $1
Original file line number Diff line number Diff line change @@ -1099,6 +1099,22 @@ sub feature_links
1099
1099
}
1100
1100
}
1101
1101
1102
+ # Link to PHP log, if enabled
1103
+ my $phplog ;
1104
+ if (defined (&virtual_server::get_domain_php_error_log)) {
1105
+ $phplog = &get_domain_php_error_log::get_domain_php_error_log($d );
1106
+ }
1107
+ if ($phplog ) {
1108
+ my $param = &virtual_server::master_admin() ? " file" : " extra" ;
1109
+ push (@rv , { ' mod' => ' syslog' ,
1110
+ ' desc' => $text {' links_phplog' },
1111
+ ' page' => " save_log.cgi?view=1&nonavlinks=1" .
1112
+ " &linktitle=" .&urlize($text {' links_phplog' })." &" .
1113
+ " $param =" .&urlize($phplog ),
1114
+ ' cat' => ' logs' ,
1115
+ });
1116
+ }
1117
+
1102
1118
# Links to edit PHP configs
1103
1119
my $mode = &feature_get_web_php_mode($d );
1104
1120
if ($mode eq " fcgid" ) {
You can’t perform that action at this time.
0 commit comments