diff options
author | Warren Baker <warren@decoy.co.za> | 2010-10-11 09:25:42 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2010-10-11 09:25:42 +0200 |
commit | fea89a6356df155aec8b45736fe1a5e8ef5e259d (patch) | |
tree | 1c41f99c921c683742fe2f7ed9165ace6684af41 /etc/inc | |
parent | 6840d0e7fec116b789261a44ee5c0b6559d1e22a (diff) | |
download | pfsense-fea89a6356df155aec8b45736fe1a5e8ef5e259d.zip pfsense-fea89a6356df155aec8b45736fe1a5e8ef5e259d.tar.gz |
Hard-coded pfSense to product_name for Growl alert notifications.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/notices.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/notices.inc b/etc/inc/notices.inc index 4415987..fadd92b 100644 --- a/etc/inc/notices.inc +++ b/etc/inc/notices.inc @@ -343,7 +343,7 @@ function notify_via_smtp($message) { ******/ function notify_via_growl($message) { require_once("growl.class"); - global $config; + global $config,$g; $hostname = $config['system']['hostname'] . "." . $config['system']['domain']; $growl_ip = $config['notifications']['growl']['ipaddress']; $growl_password = $config['notifications']['growl']['password']; @@ -352,7 +352,7 @@ function notify_via_growl($message) { if(!empty($growl_ip)) { $growl = new Growl($growl_ip, $growl_password, $growl_name); - $growl->notify("{$growl_notification}", "pfSense ($hostname) - Notification", "{$message}"); + $growl->notify("{$growl_notification}", gettext(sprintf("%s (%s) - Notification", $g['product_name'], $hostname)), "{$message}"); } } |