diff options
Diffstat (limited to 'etc/inc/notices.inc')
-rw-r--r-- | etc/inc/notices.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/inc/notices.inc b/etc/inc/notices.inc index 7f2e199..069b281 100644 --- a/etc/inc/notices.inc +++ b/etc/inc/notices.inc @@ -99,8 +99,10 @@ function file_notice($id, $notice, $category = "General", $url = "", $priority = * Returns a specific notices text ******/ function get_notices($category = "all") { - if(file_exists('/tmp/notices')) { - $queue = unserialize(file_get_contents('/tmp/notices')); + global $g; + + if(file_exists("{$g['tmp_path']}/notices")) { + $queue = unserialize(file_get_contents("{$g['tmp_path']}/notices")); if(!$queue) return false; if($category != 'all') { foreach($queue as $time => $notice) { @@ -357,4 +359,4 @@ function register_via_growl() { } } -?>
\ No newline at end of file +?> |