Merge pull request #177 from Romanitho/notif-review

Minor change on notif function
pull/178/head
Romain 2022-10-11 10:43:15 +02:00 committed by GitHub
commit 5c1279f3dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -20,7 +20,9 @@ Function Get-NotifLocale {
}
#Get locale XML file content
Write-Log "Notification Level: $($WAUConfig.WAU_NotificationLevel). Notification Language: $LocaleDisplayName" "Cyan"
[xml]$Script:NotifLocale = Get-Content $LocaleFile -Encoding UTF8 -ErrorAction SilentlyContinue
#Rerturn langague display name
Return $LocaleDisplayName
}

View File

@ -37,7 +37,8 @@ if ($IsSystem) {
}
#Get Notif Locale function
Get-NotifLocale
$LocaleDisplayName = Get-NotifLocale
Write-Log "Notification Level: $($WAUConfig.WAU_NotificationLevel). Notification Language: $LocaleDisplayName" "Cyan"
#Check network connectivity
if (Test-Network) {