summaryrefslogtreecommitdiff
path: root/inc/parser/xhtml.php
diff options
context:
space:
mode:
authorGerrit Uitslag <klapinklapin@gmail.com>2014-02-15 11:17:09 +0100
committerGerrit Uitslag <klapinklapin@gmail.com>2014-02-15 11:17:09 +0100
commit5a9ce44695f44ecc76f356c1fc26f0a1846231b7 (patch)
tree1a403df862bb1ba35dd43c97d1130f59284d6ea6 /inc/parser/xhtml.php
parent2345e871e407dbece52f3181cd8b077f07cbb0c1 (diff)
downloadrpg-5a9ce44695f44ecc76f356c1fc26f0a1846231b7.tar.gz
rpg-5a9ce44695f44ecc76f356c1fc26f0a1846231b7.tar.bz2
code reformatting
Diffstat (limited to 'inc/parser/xhtml.php')
-rw-r--r--inc/parser/xhtml.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index f0a507721..20cd8e9d6 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -685,7 +685,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
}
/**
- */
+ */
function interwikilink($match, $name = null, $wikiName, $wikiUri) {
global $conf;
@@ -697,17 +697,17 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
$link['name'] = $this->_getLinkTitle($name, $wikiUri, $isImage);
//get interwiki URL
- $url = $this->_resolveInterWiki($wikiName,$wikiUri);
+ $url = $this->_resolveInterWiki($wikiName, $wikiUri);
- if ( !$isImage ) {
- $class = preg_replace('/[^_\-a-z0-9]+/i','_',$wikiName);
+ if(!$isImage) {
+ $class = preg_replace('/[^_\-a-z0-9]+/i', '_', $wikiName);
$link['class'] = "interwiki iw_$class";
} else {
$link['class'] = 'media';
}
//do we stay at the same server? Use local target
- if( strpos($url,DOKU_URL) === 0 OR strpos($url,DOKU_BASE) === 0){
+ if(strpos($url, DOKU_URL) === 0 OR strpos($url, DOKU_BASE) === 0) {
$link['target'] = $conf['target']['wiki'];
}