diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-04-10 19:54:38 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-04-10 19:54:38 -0400 |
commit | 2718fc2b2513e47e14e7cf98be6df5608c5e72d8 (patch) | |
tree | edafd3e99a8d173860907acdfad5d1aef01097bf | |
parent | 92e39d7391cf5337445ce6129a1d31666c886bf8 (diff) | |
download | ikiwiki-2718fc2b2513e47e14e7cf98be6df5608c5e72d8.tar ikiwiki-2718fc2b2513e47e14e7cf98be6df5608c5e72d8.tar.gz |
response
-rw-r--r-- | doc/bugs/relative_links.mdwn | 2 | ||||
-rw-r--r-- | templates/change.tmpl | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/doc/bugs/relative_links.mdwn b/doc/bugs/relative_links.mdwn index 1a59f2401..a1dc8f373 100644 --- a/doc/bugs/relative_links.mdwn +++ b/doc/bugs/relative_links.mdwn @@ -23,3 +23,5 @@ Errr... That is not a solution, that is a work around. ikiwiki does not hard cod I noticed the links to the images on <http://ikiwiki.info/recentchanges/> are also absolute, that is <http://ikiwiki.info/wikiicons/diff.png>; this seems surprising, as the change.tmpl file uses <TMPL_VAR BASEURL> which seems to do the right thing in page.tmpl, but not for change.tmpl. Where is BASEURL set? -- Brian May + +> The use of an absolute baseurl in change.tmpl is a special case. --[[Joey]] diff --git a/templates/change.tmpl b/templates/change.tmpl index 55aabe201..4a99cf5ff 100644 --- a/templates/change.tmpl +++ b/templates/change.tmpl @@ -7,7 +7,7 @@ <span class="desc"><br />Changed pages:</span> <span class="pagelinks"> <TMPL_LOOP NAME="PAGES"> -<TMPL_IF NAME="DIFFURL"><a href="<TMPL_VAR DIFFURL>"><img alt="diff" src="<TMPL_VAR BASEURL>wikiicons/diff.png" /></a><TMPL_VAR LINK> +<TMPL_IF NAME="DIFFURL"><a href="<TMPL_VAR DIFFURL>">[[diff|wikiicons/diff.png]]</a><TMPL_VAR LINK> <TMPL_ELSE> <TMPL_VAR LINK> </TMPL_IF> |