diff options
-rw-r--r-- | inc/html.php | 4 | ||||
-rw-r--r-- | inc/lang/en/lang.php | 1 | ||||
-rw-r--r-- | inc/template.php | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/inc/html.php b/inc/html.php index e7525ae2d..9802f9ad9 100644 --- a/inc/html.php +++ b/inc/html.php @@ -540,6 +540,10 @@ function html_recent($first=0){ } print p_locale_xhtml('recent'); + + if (getNS($ID) != '') + print '<div class="level1"><p>' . sprintf($lang['recent_global'], wl('', 'do=recent')) . '</p></div>'; + print '<ul>'; foreach($recents as $recent){ diff --git a/inc/lang/en/lang.php b/inc/lang/en/lang.php index fbbc7eb2e..543b51025 100644 --- a/inc/lang/en/lang.php +++ b/inc/lang/en/lang.php @@ -244,5 +244,6 @@ $lang['mu_authfail'] = 'session expired'; $lang['mu_progress'] = '@PCT@% uploaded'; $lang['mu_filetypes'] = 'Allowed Filetypes'; +$lang['recent_global'] = 'To view the recent changes of the whole wiki, please <a href="%s">click here</a>.'; //Setup VIM: ex: et ts=2 enc=utf-8 : diff --git a/inc/template.php b/inc/template.php index 0b37734d8..f184b5cb3 100644 --- a/inc/template.php +++ b/inc/template.php @@ -487,7 +487,7 @@ function tpl_button($type){ print html_btn('revs',$ID,'o',array('do' => 'revisions')); return true; case 'recent': - print html_btn('recent','','r',array('do' => 'recent')); + print html_btn('recent',$ID,'r',array('do' => 'recent')); return true; case 'index': print html_btn('index',$ID,'x',array('do' => 'index')); |