- array_unshift( $params, $titleLink );
- $rv=wfMsgReal( $actions[$key], $params, true, true );
+ if( $skin ) {
+ if ( $type == 'move' ) {
+ $titleLink = $skin->makeLinkObj( $title, $title->getPrefixedText(), 'redirect=no' );
+ // Change $param[0] into a link to the title specified in $param[0]
+ $movedTo = Title::newFromText( $params[0] );
+ $params[0] = $skin->makeLinkObj( $movedTo, $params[0] );
+ } else {
+ $titleLink = $skin->makeLinkObj( $title );
+ }
+ } else {
+ $titleLink = $title->getPrefixedText();
+ }
+ if( count( $params ) == 0 ) {
+ $rv = wfMsg( $actions[$key], $titleLink );
+ } else {
+ array_unshift( $params, $titleLink );
+ if ( $translate && $key == 'block/block' ) {
+ $params[1] = $wgLang->translateBlockExpiry($params[1]);
+ }
+ $rv = wfMsgReal( $actions[$key], $params, true, false ); // FIXME: use wfMsgForContent() ?
+ }