dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Maintenance script to purge specific page"
[lhc/web/wiklou.git]
/
includes
/
Linker.php
diff --git
a/includes/Linker.php
b/includes/Linker.php
index
6942a39
..
f2e4ac4
100644
(file)
--- a/
includes/Linker.php
+++ b/
includes/Linker.php
@@
-1331,7
+1331,10
@@
class Linker {
$link = Linker::makeExternalLink(
WikiMap::getForeignURL(
$wikiId,
$link = Linker::makeExternalLink(
WikiMap::getForeignURL(
$wikiId,
- $title->getPrefixedText(),
+ $title->getNamespace() === 0
+ ? $title->getDBkey()
+ : MWNamespace::getCanonicalName( $title->getNamespace() ) . ':'
+ . $title->getDBkey(),
$title->getFragment()
),
$text,
$title->getFragment()
),
$text,
@@
-1882,7
+1885,6
@@
class Linker {
* @return string HTML output
*/
public static function formatHiddenCategories( $hiddencats ) {
* @return string HTML output
*/
public static function formatHiddenCategories( $hiddencats ) {
-
$outText = '';
if ( count( $hiddencats ) > 0 ) {
# Construct the HTML
$outText = '';
if ( count( $hiddencats ) > 0 ) {
# Construct the HTML