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:
9714e01
)
Remove self-links and display their text in bold instead.
author
Arne Heizmann
<timwi@users.mediawiki.org>
Sun, 8 Feb 2004 21:02:41 +0000
(21:02 +0000)
committer
Arne Heizmann
<timwi@users.mediawiki.org>
Sun, 8 Feb 2004 21:02:41 +0000
(21:02 +0000)
includes/OutputPage.php
patch
|
blob
|
history
diff --git
a/includes/OutputPage.php
b/includes/OutputPage.php
index
b964f03
..
ac82ad2
100644
(file)
--- a/
includes/OutputPage.php
+++ b/
includes/OutputPage.php
@@
-1047,6
+1047,11
@@
$t[] = "</table>" ;
continue;
}
}
+ if( ( $nt->getPrefixedText() == $wgTitle->getPrefixedText() ) &&
+ ( strpos( $link, "#" ) == FALSE ) ) {
+ $s .= "<strong>" . $text . "</strong>" . $trail;
+ continue;
+ }
if( $ns == $media ) {
$s .= $sk->makeMediaLinkObj( $nt, $text ) . $trail;
$wgLinkCache->addImageLinkObj( $nt );