mirror of
https://github.com/unraid/webgui.git
synced 2026-01-05 17:20:04 -06:00
Revert "plugin & language: replace conflicting logger name"
This reverts commit 2c97bc312c.
This commit is contained in:
@@ -150,7 +150,7 @@ function download($url, $name, &$error) {
|
||||
|
||||
// Deal with logging message.
|
||||
//
|
||||
function logmsg($message) {
|
||||
function logger($message) {
|
||||
shell_exec("logger $message");
|
||||
}
|
||||
|
||||
@@ -314,7 +314,7 @@ if ($method == 'install') {
|
||||
copy($xml_file, $lang_file);
|
||||
symlink($lang_file, $link_file);
|
||||
write("language: $lang language pack installed\n");
|
||||
logmsg("language: $lang language pack installed");
|
||||
logger("language: $lang language pack installed");
|
||||
// run hook scripts for post processing
|
||||
post_hooks();
|
||||
done(0);
|
||||
@@ -396,7 +396,7 @@ if ($method == 'update') {
|
||||
copy($xml_file, $lang_file);
|
||||
symlink($lang_file, $link_file);
|
||||
write("language: $lang language pack updated\n");
|
||||
logmsg("language: $lang language pack updated");
|
||||
logger("language: $lang language pack updated");
|
||||
// run hook scripts for post processing
|
||||
post_hooks();
|
||||
done(0);
|
||||
@@ -423,7 +423,7 @@ if ($method == 'remove') {
|
||||
done(1);
|
||||
}
|
||||
write("language: $lang language pack removed\n");
|
||||
logmsg("language: $lang language pack removed");
|
||||
logger("language: $lang language pack removed");
|
||||
// run hook scripts for post processing
|
||||
post_hooks();
|
||||
done(0);
|
||||
|
||||
Reference in New Issue
Block a user