Skip to content
Snippets Groups Projects
Commit 7c2f8eec authored by Gerrit Uitslag's avatar Gerrit Uitslag
Browse files

handle interwiki without slashes as pageids. Added user interwiki

* allowed urlparams
 * added `wiki:users:` as default user profile link
parent 62c8004e
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,7 @@ sb http://www.splitbrain.org/go/
skype skype:{NAME}
google.de http://www.google.de/search?q=
go http://www.google.com/search?q={URL}&btnI=lucky
user wiki:users:{URL}
# To support VoIP/SIP links
callto callto://{NAME}
......
......@@ -699,6 +699,11 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
//get interwiki URL
$url = $this->_resolveInterWiki($wikiName,$wikiUri);
if(strpos($url,'/') === false) {
list($url, $urlparam) = explode('?', $url, 2);
$url = wl($url, $urlparam);
}
if ( !$isImage ) {
$class = preg_replace('/[^_\-a-z0-9]+/i','_',$wikiName);
$link['class'] = "interwiki iw_$class";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment