https://bugzilla.wikimedia.org/show_bug.cgi?id=17583

           Summary: 1movedto2 and 1movedto2_redir used inconsistently
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: Internationalization
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: niklas.laxst...@gmail.com


Definition of the messages are of form: "moved [[$1]] to [[$2]]"

However some code in ChangeList.php is passing html links to it:

# "[[x]] moved to [[y]]"
$msg = ( $rc->mAttribs['rc_type'] == RC_MOVE ) ? '1movedto2' :
'1movedto2_redir';
$s .= wfMsg( $msg, $this->skin->makeKnownLinkObj( $rc->getTitle(), '',
'redirect=no' ),
  $this->skin->makeKnownLinkObj( $rc->getMovedToTitle(), '' ) );
--
// Page moves
if( $rc_type == RC_MOVE || $rc_type == RC_MOVE_OVER_REDIRECT ) {
  $msg = ( $rc_type == RC_MOVE ) ? "1movedto2" : "1movedto2_redir";
  $clink = wfMsg( $msg, $this->skin->makeKnownLinkObj( $rc->getTitle(), '',
'redirect=no' ),
     $this->skin->makeKnownLinkObj( $rc->getMovedToTitle(), '' ) );

The code should either be fixed, or if it is obsolete (from the time before new
logging system), it should perhaps be removed.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to