Show number of pending reports in title, and "unread PM" notice on dashboard

This commit is contained in:
Savetheinternet 2011-03-29 02:00:17 +11:00
parent ff1fedca48
commit 80955172e9
2 changed files with 4 additions and 4 deletions

View File

@ -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();
}

View File

@ -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
));