From 11df47ecd71f7c3512e9e3978f865e9662053180 Mon Sep 17 00:00:00 2001 From: Michael Klier Date: Mon, 13 Aug 2007 18:04:52 +0200 Subject: added nothing found message to backlinks output darcs-hash:20070813160452-23886-c40e9f3bfe259d698500a6ef01f75894801b22c5.gz --- inc/html.php | 18 ++++++++++++------ 1 file 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 + * @author Michael Klier */ 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 '
    '; - foreach($data as $blink){ - print '
  • '; - print html_wikilink(':'.$blink,$conf['useheading']?NULL:$blink); - print '
  • '; + if(!empty($data)) { + print '
      '; + foreach($data as $blink){ + print '
    • '; + print html_wikilink(':'.$blink,$conf['useheading']?NULL:$blink); + print '
    • '; + } + print '
    '; + } else { + print '

    ' . $lang['nothingfound'] . '

    '; } - print '
'; } /** -- cgit v1.2.3