- if( is_null( $titleLink ) ) {
- return wfMsg( $actions[$key] );
- } else {
- return wfMsg( $actions[$key], $titleLink );
+ if( is_null( $title ) ) {
+ $rv=wfMsgForContent( $actions[$key] );
+ }
+ else {
+ 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=wfMsgForContent( $actions[$key], $titleLink );
+ } else {
+ array_unshift( $params, $titleLink );
+ $rv=wfMsgReal( $actions[$key], $params, true, true );
+ }