[dokuwiki] Re: not correct examples in devel:event:tpl_metaheader_output

  • From: "Mikhail I. Izmestev" <izmmishao5@xxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Mon, 06 Apr 2009 17:44:13 +0500

Michael Klier wrote:
> would it make sense to always prepend DOKU_BASE for script tags added via
> TPL_METAHEADER_OUTPUT directly in the function which adds them? 
>
>   
This is not only for script tags, but also href attribute of link tags.
Always to prepend DOKU_BASE is not correct, src attribute can be set to
external url like "http://another.host/some_script.js"; or
"/not/dokuwiki/space/another_style.css". It's necessary to handle these
situations for prepending DOKU_BASE into _tpl_metaheaders_action function.
-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: