Last modified: 2010-05-15 15:33:56 UTC
On my own private wiki, when I use the code (seen in the URL), it generates PHP notices: Notice: Undefined offset: -3 in D:\XAMPP\htdocs\w\languages\Language.php on line 1727 Notice: Undefined offset: 16 in D:\XAMPP\htdocs\w\languages\Language.php on line 1727 Notice: Undefined offset: 17 in D:\XAMPP\htdocs\w\languages\Language.php on line 1727 Notice: Undefined offset: 102 in D:\XAMPP\htdocs\w\languages\Language.php on line 1727 Notice: Undefined offset: 103 in D:\XAMPP\htdocs\w\languages\Language.php on line 1727 This is most likely from the {{ns:-3}}, {{ns:16}}, {{ns:17}}, etc. that appear on the page. The line in question is in getNsText(), which is: return $wgNamespaceNamesEn[$index]; A check should be added to make sure that the namespace actually exists.
*** This bug has been marked as a duplicate of 2287 ***