Index: trunk/phase3/includes/ChangesList.php |
— | — | @@ -438,7 +438,7 @@ |
439 | 439 | $curIdEq = 'curid=' . $rc_cur_id; |
440 | 440 | |
441 | 441 | # If it's a new day, add the headline and flush the cache |
442 | | - $date = $wgLang->date( $rc_timestamp, true); |
| 442 | + $date = $wgLang->date( $rc_timestamp, true ); |
443 | 443 | $ret = ''; |
444 | 444 | if( $date != $this->lastdate ) { |
445 | 445 | # Process current cache |
— | — | @@ -462,22 +462,12 @@ |
463 | 463 | $msg = ( $rc_type == RC_MOVE ) ? "1movedto2" : "1movedto2_redir"; |
464 | 464 | $clink = wfMsg( $msg, $this->skin->makeKnownLinkObj( $rc->getTitle(), '', 'redirect=no' ), |
465 | 465 | $this->skin->makeKnownLinkObj( $rc->getMovedToTitle(), '' ) ); |
466 | | - // Log entries (old format) and special pages |
467 | | - } elseif( $rc_namespace == NS_SPECIAL ) { |
468 | | - list( $specialName, $logtype ) = SpecialPage::resolveAliasWithSubpage( $rc_title ); |
469 | | - if ( $specialName == 'Log' ) { |
470 | | - # Log updates, etc |
471 | | - $logname = LogPage::logName( $logtype ); |
472 | | - $clink = '(' . $this->skin->makeKnownLinkObj( $rc->getTitle(), $logname ) . ')'; |
473 | | - } else { |
474 | | - wfDebug( "Unexpected special page in recentchanges\n" ); |
475 | | - $clink = ''; |
476 | | - } |
477 | 466 | // New unpatrolled pages |
478 | 467 | } else if( $rc->unpatrolled && $rc_type == RC_NEW ) { |
479 | 468 | $clink = $this->skin->makeKnownLinkObj( $rc->getTitle(), '', "rcid={$rc_id}" ); |
480 | 469 | // Log entries |
481 | 470 | } else if( $rc_type == RC_LOG ) { |
| 471 | + var_dump( $rc_log_type ); |
482 | 472 | if( $rc_log_type ) { |
483 | 473 | $logtitle = SpecialPage::getTitleFor( 'Log', $rc_log_type ); |
484 | 474 | $clink = '(' . $this->skin->makeKnownLinkObj( $logtitle, LogPage::logName($rc_log_type) ) . ')'; |
— | — | @@ -485,6 +475,17 @@ |
486 | 476 | $clink = $this->skin->makeLinkObj( $rc->getTitle(), '' ); |
487 | 477 | } |
488 | 478 | $watched = false; |
| 479 | + // Log entries (old format) and special pages |
| 480 | + } elseif( $rc_namespace == NS_SPECIAL ) { |
| 481 | + list( $specialName, $logtype ) = SpecialPage::resolveAliasWithSubpage( $rc_title ); |
| 482 | + if ( $specialName == 'Log' ) { |
| 483 | + # Log updates, etc |
| 484 | + $logname = LogPage::logName( $logtype ); |
| 485 | + $clink = '(' . $this->skin->makeKnownLinkObj( $rc->getTitle(), $logname ) . ')'; |
| 486 | + } else { |
| 487 | + wfDebug( "Unexpected special page in recentchanges\n" ); |
| 488 | + $clink = ''; |
| 489 | + } |
489 | 490 | // Edits |
490 | 491 | } else { |
491 | 492 | $clink = $this->skin->makeKnownLinkObj( $rc->getTitle(), '' ); |