diff options
Diffstat (limited to 'inc/template.php')
-rw-r--r-- | inc/template.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/inc/template.php b/inc/template.php index 3937d99d2..a17d16f56 100644 --- a/inc/template.php +++ b/inc/template.php @@ -867,4 +867,22 @@ function tpl_img($maxwidth=900,$maxheight=700){ print '</a>'; } +/** + * This function inserts a 1x1 pixel gif which in reality + * is the inexer function. + * + * Should be called somewhere at the very end of the main.php + * template + */ +function tpl_indexerWebBug(){ + global $ID; + $p = array(); + $p['src'] = DOKU_BASE.'lib/exe/indexer.php?id='.urlencode($ID); + $p['width'] = 1; + $p['height'] = 1; + $p['alt'] = ''; + $att = buildAttributes($p); + print "<img $att />"; +} + //Setup VIM: ex: et ts=2 enc=utf-8 : |