Topic on Extension talk:Realnames

BugFix for foreign wiki

2
Thibault Taillandier (talkcontribs)

Hi,

Thank you for your extension. I encountered a bug because i'm using a French Mediawiki (v 1.20.2) Apparently the detection of i18n namespace doesn't include the trailing colon ":", so it didn't match correctly on the RecentChanges page. Although it worked fine on the Personnel page link (at the top).

I found a patch, which i paste here in case someone needs it :

File Realnames.body.php, method getNamespacePrefixes, (around line 235, just before the "clean up" comment) Put this code :

   foreach ($namespaces as $i=>$_namespace) {
    if (!preg_match("#:$#",$_namespace)) { $namespaces[$i] = $_namespace.":"; }
   }

Beware this code wasn't fully tested and can be buggy. I hope Olivier Beaton can check this out and release a patched version.

Thank you.

Teokraba (talkcontribs)

mediawiki 1.20.3 - italian lang : this patch works!

Reply to "BugFix for foreign wiki"