From 9e0b3dce2d8958df09e7f3f0fdbdfdabf4cfcf6e Mon Sep 17 00:00:00 2001 From: Colin Smith Date: Fri, 15 Jul 2005 22:04:00 +0000 Subject: [PATCH] Modify get_notices() to work with XMLRPC. This isn't ideal. --- etc/inc/notices.inc | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/etc/inc/notices.inc b/etc/inc/notices.inc index 07634ea639..60789ce5d2 100644 --- a/etc/inc/notices.inc +++ b/etc/inc/notices.inc @@ -63,9 +63,8 @@ function file_notice($id, $notice, $category = "General", $url = "", $priority = } function get_notices($category = "all") { - global $notice_path; - if(file_exists($notice_path)) { - $queue = unserialize(file_get_contents($notice_path)); + if(file_exists('/tmp/notices')) { + $queue = unserialize(file_get_contents('/tmp/notices')); if(!$queue) return false; if($category != 'all') { foreach($queue as $time => $notice) { @@ -157,13 +156,4 @@ 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 +?>