summaryrefslogtreecommitdiff
path: root/lib/tpl
diff options
context:
space:
mode:
authorBen Coburn <btcoburn@silicodon.net>2006-04-11 01:43:11 +0200
committerBen Coburn <btcoburn@silicodon.net>2006-04-11 01:43:11 +0200
commita6598f23d132cda74f6901383f0d3da7da2efc9c (patch)
tree49c2377be2113be35d0f1b6e3aad7b3cccbc7299 /lib/tpl
parentbfd68419cf89a52facf2a029d191673643c3cf70 (diff)
downloadrpg-a6598f23d132cda74f6901383f0d3da7da2efc9c.tar.gz
rpg-a6598f23d132cda74f6901383f0d3da7da2efc9c.tar.bz2
pagetitle as template pagename
Uses the first heading as the page name in the default template if $conf['useheading'] is set. Updates tpl_pagetitle() so that it can return this value. darcs-hash:20060410234311-05dcb-b4636f7c0d8f98658a6097ea9ee4dff1ee2de8b4.gz
Diffstat (limited to 'lib/tpl')
-rw-r--r--lib/tpl/default/main.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tpl/default/main.php b/lib/tpl/default/main.php
index 25f0cb3ff..a63831ae4 100644
--- a/lib/tpl/default/main.php
+++ b/lib/tpl/default/main.php
@@ -36,7 +36,7 @@
<div class="header">
<div class="pagename">
- [[<?php tpl_link(wl($ID,'do=backlink'),$ID)?>]]
+ [[<?php tpl_link(wl($ID,'do=backlink'),tpl_pagetitle($ID,true))?>]]
</div>
<div class="logo">
<?php tpl_link(wl(),$conf['title'],'name="dokuwiki__top" id="dokuwiki__top" accesskey="h" title="[ALT+H]"')?>