(bug 5018) Anchors for each message in Special:Allmessages
authorRob Church <robchurch@users.mediawiki.org>
Fri, 17 Feb 2006 16:39:31 +0000 (16:39 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Fri, 17 Feb 2006 16:39:31 +0000 (16:39 +0000)
RELEASE-NOTES
includes/SpecialAllmessages.php

index 6aace8d..7dacb7c 100644 (file)
@@ -348,6 +348,7 @@ Special Pages:
 * Add block link and a link to the block log to Special:Contributions
 * Add contributions link to block log items
 * Added optional "hide own edits" feature to Special:Recentchanges
+* (bug 5018) Anchors for each message in Special:Allmessages
 
 Misc.:
 * PHP 4.1 compatibility fix: don't use new_link parameter to mysql_connect
index 8238a4a..8071a9d 100644 (file)
@@ -149,13 +149,16 @@ function makeHTMLText( $messages ) {
                } else {
                        $talkLink = $sk->makeBrokenLinkObj( $talkPage, htmlspecialchars( $talk ) );
                }
+               
+               $anchor = strtolower( $title );
+               $anchor = "<a id=\"$anchor\" name=\"$anchor\"></a>";
 
                if($changed) {
 
                        $txt .=
        "<tr class='orig'>
                <td rowspan='2'>
-                       $pageLink<br />$talkLink
+                       $anchor$pageLink<br />$talkLink
                </td><td>
 $message
                </td>
@@ -169,7 +172,7 @@ $mw
                        $txt .=
        "<tr class='def'>
                <td>
-                       $pageLink<br />$talkLink
+                       $anchor$pageLink<br />$talkLink
                </td><td>
 $mw
                </td>