From 80955172e98938f96a9b6c08ec9886d74500552f Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Tue, 29 Mar 2011 02:00:17 +1100 Subject: [PATCH] Show number of pending reports in title, and "unread PM" notice on dashboard --- inc/template.php | 2 +- mod.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/template.php b/inc/template.php index c0c754f1..e0761d6a 100644 --- a/inc/template.php +++ b/inc/template.php @@ -170,7 +170,7 @@ global $config; // Small little hack to add the PM system - if(function_exists('create_pm_header') && @$options['mod']) { + if(function_exists('create_pm_header') && (@$options['mod'] || @$options['__mod'])) { $options['pm'] = create_pm_header(); } diff --git a/mod.php b/mod.php index 55f769a0..c47d7b78 100644 --- a/mod.php +++ b/mod.php @@ -117,8 +117,8 @@ echo Element('page.html', Array( 'config'=>$config, 'title'=>'Dashboard', - 'body'=>$body - //,'mod'=>true /* All 'mod' does, at this point, is put the "Return to dashboard" link in. */ + 'body'=>$body, + '__mod'=>true ) ); } elseif(preg_match('/^\/logout$/', $query)) { @@ -576,7 +576,7 @@ echo Element('page.html', Array( 'config'=>$config, - 'title'=>'Report queue', + 'title'=>'Report queue (' . $count['count'] . ')', 'body'=>$body, 'mod'=>true ));