From 1bdfef2d26780971f04a2a42496f8e584cdd6d75 Mon Sep 17 00:00:00 2001 From: Federico Leva Date: Fri, 16 Jan 2015 23:50:34 +0100 Subject: [PATCH] Add anchor "mw-oldid" for beginning of page content in diff view * #top, #mw-content-text and others exist, but all point to the beginning of the diff, not of the actual page content. * Pick mw- prefix and technical but familiar related name, in the hope it's not confusing nor too hard to remember. * Lowercase letters, similar to #top, #footer, #file etc. were also considered and discard, inspired to usual names: https://www.wikidata.org/wiki/Q10966628 Bug: T4313 Change-Id: Ia90f2541327480535e9943ac30bfa19791a19620 --- includes/diff/DifferenceEngine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/diff/DifferenceEngine.php b/includes/diff/DifferenceEngine.php index 47967e489c..f9f9d32510 100644 --- a/includes/diff/DifferenceEngine.php +++ b/includes/diff/DifferenceEngine.php @@ -546,7 +546,7 @@ class DifferenceEngine extends ContextSource { $out = $this->getOutput(); $revHeader = $this->getRevisionHeader( $this->mNewRev ); # Add "current version as of X" title - $out->addHTML( "
+ $out->addHTML( "

{$revHeader}

\n" ); # Page content may be handled by a hooked call instead... # @codingStandardsIgnoreStart Ignoring long lines. -- 2.20.1