I am having problems with darcs (refer query on wiki:darcs page) so here are the details to extend $conf['useheading'] effects to search, recent changes & backlinks pages. Index page doesn't need it as its already has it.
All of the four changes below remove the $title parameter from html_wikilink. This works as html_wikilink supports the $conf['useheading'] setting if no $title value is given.
in inc/html.php
#331
- print html_wikilink(':'.$row['id'],$row['id']);
+ print html_wikilink(':'.$row['id']);
#347
- print html_wikilink(':'.$row['id'],$row['id'],$QUERY);
+ print html_wikilink(':'.$row['id'],NULL,$QUERY);
#485
- print html_wikilink($id,$id);
+ print html_wikilink($id);
#673
- print html_wikilink(':'.$row['id'],$row['id']);
+ print html_wikilink(':'.$row['id']);
An addition change can be added to main.php in the default template:
in tpl/default/main.php
#55
- [[<?php tpl_link(wl($ID,'do=backlink'),$ID)?>]]
+ [[<?php tpl_link(wl($ID,'do=backlink'),($conf['useheading']?htmlspecialchars(p_get_first_heading($ID)):$ID))?>]]
However as this doesn't make use of a tpl_* function I am not sure it is an appropriate solution.
You can see these changes in action at
http://wiki.jalakai.co.uk/dokuwiki/doku.php/