https://bugzilla.wikimedia.org/show_bug.cgi?id=53132
--- Comment #8 from Bartosz DziewoĆski <matma....@gmail.com> --- Something like this (untested): static function getUserFromLine( $line, $timestampPos ) { global $wgContLang; // Later entries have a higher precedence // @todo Handle optional whitespace in links $possiblePrefixes = array(); foreach ( array( $wgContLang, Language::factory( 'en' ) ) as $language ) { $nsNames = $language->getNamespaces(); $possiblePrefixes[] = '[[' . $nsNames[NS_USER] . ':'; $possiblePrefixes[] = '[[' . $nsNames[NS_USER_TALK] . ':'; $nsAliases = $language->getNamespaceAliases(); foreach ( $nsAliases as $text => $id ) { if ( $id == NS_USER || $id == NS_USER_TALK ) { $possiblePrefixes[] = '[[' . $text . ':'; } } } // @todo Handle possible aliases $possiblePrefixes[] = '[[' . SpecialPage::getTitleFor( 'Contributions' )->getPrefixedText() . '/'; -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l