Index: trunk/phase3/includes/diff/DifferenceInterface.php |
— | — | @@ -273,7 +273,10 @@ |
274 | 274 | # Make "previous revision link" |
275 | 275 | $query['diff'] = 'prev'; |
276 | 276 | $query['oldid'] = $this->mOldid; |
277 | | - |
| 277 | + # Cascade unhide param in links for easy deletion browsing |
| 278 | + if( $this->unhide ) { |
| 279 | + $query['unhide'] = 1; |
| 280 | + } |
278 | 281 | $prevlink = $sk->link( |
279 | 282 | $this->mTitle, |
280 | 283 | wfMsgHtml( 'previousdiff' ), |
— | — | @@ -286,10 +289,11 @@ |
287 | 290 | 'noclasses' |
288 | 291 | ) |
289 | 292 | ); |
| 293 | + |
290 | 294 | # Make "next revision link" |
291 | 295 | $query['diff'] = 'next'; |
292 | 296 | $query['oldid'] = $this->mNewid; |
293 | | - |
| 297 | + # Skip next link on the top revision |
294 | 298 | if( $this->mNewRev->isCurrent() ) { |
295 | 299 | $nextlink = ' '; |
296 | 300 | } else { |
Index: trunk/phase3/includes/Article.php |
— | — | @@ -3370,6 +3370,11 @@ |
3371 | 3371 | return; |
3372 | 3372 | } |
3373 | 3373 | |
| 3374 | + # Cascade unhide param in links for easy deletion browsing |
| 3375 | + $extraParams = array(); |
| 3376 | + if( $wgRequest->getVal('unhide') ) { |
| 3377 | + $extraParams['unhide'] = 1; |
| 3378 | + } |
3374 | 3379 | $revision = Revision::newFromId( $oldid ); |
3375 | 3380 | |
3376 | 3381 | $current = ( $oldid == $this->mLatest ); |
— | — | @@ -3383,7 +3388,7 @@ |
3384 | 3389 | $this->mTitle, |
3385 | 3390 | wfMsgHtml( 'currentrevisionlink' ), |
3386 | 3391 | array(), |
3387 | | - array(), |
| 3392 | + $extraParams, |
3388 | 3393 | array( 'known', 'noclasses' ) |
3389 | 3394 | ); |
3390 | 3395 | $curdiff = $current |
— | — | @@ -3395,7 +3400,7 @@ |
3396 | 3401 | array( |
3397 | 3402 | 'diff' => 'cur', |
3398 | 3403 | 'oldid' => $oldid |
3399 | | - ), |
| 3404 | + ) + $extraParams, |
3400 | 3405 | array( 'known', 'noclasses' ) |
3401 | 3406 | ); |
3402 | 3407 | $prev = $this->mTitle->getPreviousRevisionID( $oldid ) ; |
— | — | @@ -3407,7 +3412,7 @@ |
3408 | 3413 | array( |
3409 | 3414 | 'direction' => 'prev', |
3410 | 3415 | 'oldid' => $oldid |
3411 | | - ), |
| 3416 | + ) + $extraParams, |
3412 | 3417 | array( 'known', 'noclasses' ) |
3413 | 3418 | ) |
3414 | 3419 | : wfMsgHtml( 'previousrevision' ); |
— | — | @@ -3419,7 +3424,7 @@ |
3420 | 3425 | array( |
3421 | 3426 | 'diff' => 'prev', |
3422 | 3427 | 'oldid' => $oldid |
3423 | | - ), |
| 3428 | + ) + $extraParams, |
3424 | 3429 | array( 'known', 'noclasses' ) |
3425 | 3430 | ) |
3426 | 3431 | : wfMsgHtml( 'diff' ); |
— | — | @@ -3432,7 +3437,7 @@ |
3433 | 3438 | array( |
3434 | 3439 | 'direction' => 'next', |
3435 | 3440 | 'oldid' => $oldid |
3436 | | - ), |
| 3441 | + ) + $extraParams, |
3437 | 3442 | array( 'known', 'noclasses' ) |
3438 | 3443 | ); |
3439 | 3444 | $nextdiff = $current |
— | — | @@ -3444,7 +3449,7 @@ |
3445 | 3450 | array( |
3446 | 3451 | 'diff' => 'next', |
3447 | 3452 | 'oldid' => $oldid |
3448 | | - ), |
| 3453 | + ) + $extraParams, |
3449 | 3454 | array( 'known', 'noclasses' ) |
3450 | 3455 | ); |
3451 | 3456 | |