summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klier <chi@chimeric.de>2007-08-13 18:04:52 +0200
committerMichael Klier <chi@chimeric.de>2007-08-13 18:04:52 +0200
commit11df47ecd71f7c3512e9e3978f865e9662053180 (patch)
treea0187f629d461821f2eff6ee6f7528330f43e265
parent1b6f3a44911fa2894c9318857e36c705abf0b5cb (diff)
downloadrpg-11df47ecd71f7c3512e9e3978f865e9662053180.tar.gz
rpg-11df47ecd71f7c3512e9e3978f865e9662053180.tar.bz2
added nothing found message to backlinks output
darcs-hash:20070813160452-23886-c40e9f3bfe259d698500a6ef01f75894801b22c5.gz
-rw-r--r--inc/html.php18
1 files changed, 12 insertions, 6 deletions
diff --git a/inc/html.php b/inc/html.php
index 55cf89b79..4c92060eb 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -744,23 +744,29 @@ function html_buildlist($data,$class,$func,$lifunc='html_li_default'){
* display backlinks
*
* @author Andreas Gohr <andi@splitbrain.org>
+ * @author Michael Klier <chi@chimeric.de>
*/
function html_backlinks(){
require_once(DOKU_INC.'inc/fulltext.php');
global $ID;
global $conf;
+ global $lang;
print p_locale_xhtml('backlinks');
$data = ft_backlinks($ID);
- print '<ul class="idx">';
- foreach($data as $blink){
- print '<li><div class="li">';
- print html_wikilink(':'.$blink,$conf['useheading']?NULL:$blink);
- print '</div></li>';
+ if(!empty($data)) {
+ print '<ul class="idx">';
+ foreach($data as $blink){
+ print '<li><div class="li">';
+ print html_wikilink(':'.$blink,$conf['useheading']?NULL:$blink);
+ print '</div></li>';
+ }
+ print '</ul>';
+ } else {
+ print '<div class="level1"><p>' . $lang['nothingfound'] . '</p></div>';
}
- print '</ul>';
}
/**