]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/urlto_API_change_breaks_wikis_with_po_plugin.mdwn
Applied in my po branch, please pull.
[ikiwiki.git] / doc / bugs / urlto_API_change_breaks_wikis_with_po_plugin.mdwn
1 The po plugin needs to be updated to match the urlto sub API and
2 signature changes. Else a wiki with the po plugin enabled cannot be
3 refreshed / rebuilt because of (correct) Perl errors.
4
5 My po branch contains a fix.
6 --[[intrigeri]]
7
8 > The commit looks sane to me, for what it's worth. Joey, please
9 > consider merging? --[[smcv]]
10
11 Also, I fear the lack of any useful `$from` parameter might break some
12 l10n'd link niceness when using `po_link_to = current` but I have not
13 investigated this yet.
14 --[[intrigeri]]
15
16 > If `urlto` is called without a second parameter, it means we need
17 > a URL valid from either the CGI URL or any page in the wiki,
18 > (so we'd previously have set the third parameter true), but we
19 > don't *necessarily* need an absolute URL - so return what you'd
20 > have returned if asked for an absolute URL, but looking like
21 > `/bugs/` rather than `http://ikiwiki.info/bugs/` if possible.
22 >
23 > It looks as though `beautify_urlpath` under `po_link_to = current`,
24 > and 3-argument `urlto`, aren't tested by `t/po.t` - perhaps you
25 > could add some test cases there? To test 3-argument `urlto` you'd
26 > need to add `$config{baseurl} = "http://example.com"` or
27 > something. --[[smcv]]