summaryrefslogtreecommitdiff
path: root/inc/common.php
diff options
context:
space:
mode:
authorGerrit Uitslag <klapinklapin@gmail.com>2014-02-15 14:34:26 +0100
committerGerrit Uitslag <klapinklapin@gmail.com>2014-02-15 14:34:26 +0100
commit6496c33fc8e98f6e3acaaa5db0234d9c07bec4fe (patch)
tree05e6f01e4a65cab0801f217e56d7b34111fdd0e9 /inc/common.php
parentddb55c702f2393a435c309fd7d4e169acb2675f7 (diff)
downloadrpg-6496c33fc8e98f6e3acaaa5db0234d9c07bec4fe.tar.gz
rpg-6496c33fc8e98f6e3acaaa5db0234d9c07bec4fe.tar.bz2
interwiki : prefixed configurls handled as wikilinks
Diffstat (limited to 'inc/common.php')
-rw-r--r--inc/common.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/inc/common.php b/inc/common.php
index cd3c053a3..aa59a8c11 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -1497,7 +1497,15 @@ function userinfo($username = null) {
$xhtml_renderer->interwiki = getInterwiki();
}
$shortcut = 'user';
- $data['link']['url'] = $xhtml_renderer->_resolveInterWiki($shortcut, $username);
+ $data['link']['url'] = $xhtml_renderer->_resolveInterWiki($shortcut, $username, $exists);
+ if($exists !== null) {
+ if($exists) {
+ $data['link']['class'] .= ' wikilink1';
+ } else {
+ $data['link']['class'] .= ' wikilink2';
+ $data['link']['rel'] = 'nofollow';
+ }
+ }
}
} else {
$data['link'] = false;