Index: trunk/phase3/includes/diff/DifferenceEngine.php |
— | — | @@ -208,14 +208,21 @@ |
209 | 209 | $patrol = ''; |
210 | 210 | } |
211 | 211 | |
| 212 | + $diffOnlyArg = ''; |
| 213 | + # Carry over 'diffonly' param via navigation links |
| 214 | + if( $diffOnly != $wgUser->getBoolOption('diffonly') ) { |
| 215 | + $diffOnlyArg = '&diffonly='.$diffOnly; |
| 216 | + } |
212 | 217 | $htmldiffarg = $this->htmlDiffArgument(); |
| 218 | + # Make "previous revision link" |
213 | 219 | $prevlink = $sk->makeKnownLinkObj( $this->mTitle, wfMsgHtml( 'previousdiff' ), |
214 | | - 'diff=prev&oldid='.$this->mOldid.$htmldiffarg, '', '', 'id="differences-prevlink"' ); |
215 | | - if ( $this->mNewRev->isCurrent() ) { |
| 220 | + "diff=prev&oldid={$this->mOldid}{$htmldiffarg}{$diffOnlyArg}", '', '', 'id="differences-prevlink"' ); |
| 221 | + # Make "next revision link" |
| 222 | + if( $this->mNewRev->isCurrent() ) { |
216 | 223 | $nextlink = ' '; |
217 | 224 | } else { |
218 | 225 | $nextlink = $sk->makeKnownLinkObj( $this->mTitle, wfMsgHtml( 'nextdiff' ), |
219 | | - 'diff=next&oldid='.$this->mNewid.$htmldiffarg, '', '', 'id="differences-nextlink"' ); |
| 226 | + "diff=next&oldid={$this->mNewid}{$htmldiffarg}{$diffOnlyArg}", '', '', 'id="differences-nextlink"' ); |
220 | 227 | } |
221 | 228 | |
222 | 229 | $oldminor = ''; |