dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e4e98b
)
category redirect bug fix
author
Magnus Manske
<magnusmanske@users.mediawiki.org>
Tue, 3 Aug 2004 19:50:37 +0000
(19:50 +0000)
committer
Magnus Manske
<magnusmanske@users.mediawiki.org>
Tue, 3 Aug 2004 19:50:37 +0000
(19:50 +0000)
includes/Parser.php
patch
|
blob
|
history
diff --git
a/includes/Parser.php
b/includes/Parser.php
index
57600b3
..
a82104e
100644
(file)
--- a/
includes/Parser.php
+++ b/
includes/Parser.php
@@
-1046,6
+1046,8
@@
class Parser
if ( !$tc ) { $tc = Title::legalChars() . '#%'; }
$sk =& $this->mOptions->getSkin();
+ $isRedirect = false ;
+ if ( trim ( substr ( $s , 0 , 10 ) ) == '#REDIRECT' ) $isRedirect = true ;
$a = explode( '[[', ' ' . $s );
$s = array_shift( $a );
$s = substr( $s, 1 );
@@
-1161,7
+1163,7
@@
class Parser
$wgLinkCache->addImageLinkObj( $nt );
continue;
}
- if ( $ns == $category ) {
+ if ( $ns == $category
&& !$isRedirect
) {
$t = $nt->getText() ;
$nnt = Title::newFromText ( Namespace::getCanonicalName($category).":".$t ) ;