From: Federico Leva Date: Fri, 16 Jan 2015 22:50:34 +0000 (+0100) Subject: Add anchor "mw-oldid" for beginning of page content in diff view X-Git-Tag: 1.31.0-rc.0~12187^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/fiche.php?a=commitdiff_plain;h=1bdfef2d26780971f04a2a42496f8e584cdd6d75;p=lhc%2Fweb%2Fwiklou.git 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 --- 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.