mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-19 01:24:05 +01:00
Show number of pending reports in title, and "unread PM" notice on dashboard
This commit is contained in:
parent
ff1fedca48
commit
80955172e9
@ -170,7 +170,7 @@
|
|||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
// Small little hack to add the PM system
|
// 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();
|
$options['pm'] = create_pm_header();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
6
mod.php
6
mod.php
@ -117,8 +117,8 @@
|
|||||||
echo Element('page.html', Array(
|
echo Element('page.html', Array(
|
||||||
'config'=>$config,
|
'config'=>$config,
|
||||||
'title'=>'Dashboard',
|
'title'=>'Dashboard',
|
||||||
'body'=>$body
|
'body'=>$body,
|
||||||
//,'mod'=>true /* All 'mod' does, at this point, is put the "Return to dashboard" link in. */
|
'__mod'=>true
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
} elseif(preg_match('/^\/logout$/', $query)) {
|
} elseif(preg_match('/^\/logout$/', $query)) {
|
||||||
@ -576,7 +576,7 @@
|
|||||||
|
|
||||||
echo Element('page.html', Array(
|
echo Element('page.html', Array(
|
||||||
'config'=>$config,
|
'config'=>$config,
|
||||||
'title'=>'Report queue',
|
'title'=>'Report queue (' . $count['count'] . ')',
|
||||||
'body'=>$body,
|
'body'=>$body,
|
||||||
'mod'=>true
|
'mod'=>true
|
||||||
));
|
));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user