summaryrefslogtreecommitdiffstats
path: root/etc/inc/notices.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-15 22:22:10 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-15 22:22:10 +0000
commit6e2ec568aa3f7df873ad322192cc20e1776cf4a2 (patch)
treeb72623e587f1353086a4bcc24076a4ad470ebf74 /etc/inc/notices.inc
parent9e0b3dce2d8958df09e7f3f0fdbdfdabf4cfcf6e (diff)
downloadpfsense-6e2ec568aa3f7df873ad322192cc20e1776cf4a2.zip
pfsense-6e2ec568aa3f7df873ad322192cc20e1776cf4a2.tar.gz
* Restore are_notices_pending(). Getting the actual message is expensive on smaller devices if none are pending.
* Remove trailing file space.
Diffstat (limited to 'etc/inc/notices.inc')
-rw-r--r--etc/inc/notices.inc12
1 files changed, 11 insertions, 1 deletions
diff --git a/etc/inc/notices.inc b/etc/inc/notices.inc
index 60789ce..b53a5ed 100644
--- a/etc/inc/notices.inc
+++ b/etc/inc/notices.inc
@@ -156,4 +156,14 @@ function print_notice_box($category = "all") {
print_info_box_np(print_notices($notices, $category));
return;
}
-?>
+
+
+function are_notices_pending($category = "all") {
+ global $notice_path;
+ if(file_exists($notice_path)) {
+ return true;
+ }
+ return false;
+}
+
+?> \ No newline at end of file
OpenPOWER on IntegriCloud