Index: trunk/extensions/SocialProfile/UserRelationship/SpecialViewRelationships.php |
— | — | @@ -46,7 +46,7 @@ |
47 | 47 | * It will automatically return them to the ViewRelationships page |
48 | 48 | */ |
49 | 49 | if( $wgUser->getID() == 0 && $user_name == '' ){ |
50 | | - $wgOut->setPagetitle( wfMsg('ur-error-page-title') ); |
| 50 | + $wgOut->setPageTitle( wfMsg('ur-error-page-title') ); |
51 | 51 | $login = SpecialPage::getTitleFor( 'UserLogin' ); |
52 | 52 | $wgOut->redirect( $login->escapeFullURL('returnto=Special:ViewRelationships') ); |
53 | 53 | return false; |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | * Error message for username that does not exist (from URL) |
73 | 73 | */ |
74 | 74 | if( $user_id == 0 ){ |
75 | | - $wgOut->setPagetitle( wfMsg('ur-error-title') ); |
| 75 | + $wgOut->setPageTitle( wfMsg('ur-error-title') ); |
76 | 76 | $out .= '<div class="relationship-error-message"> |
77 | 77 | '.wfMsg('ur-error-message-no-user').' |
78 | 78 | </div> |
— | — | @@ -101,9 +101,9 @@ |
102 | 102 | #$invite_contacts_link = SpecialPage::getTitleFor( 'InviteContacts' ); |
103 | 103 | |
104 | 104 | if( $rel_type == 1 ) { |
105 | | - $output .= $wgOut->setPagetitle( wfMsg( 'ur-title-friend', $rel->user_name ) ); |
| 105 | + $output .= $wgOut->setPageTitle( wfMsg( 'ur-title-friend', $rel->user_name ) ); |
106 | 106 | $total = $friend_count; |
107 | | - $rem = wfMsg('ur-remove-relationship-friend'); |
| 107 | + $rem = wfMsg( 'ur-remove-relationship-friend' ); |
108 | 108 | $output .= '<div class="back-links"> |
109 | 109 | <a href="'.$back_link->escapeFullURL().'">'.wfMsg( 'ur-backlink', $rel->user_name ).'</a> |
110 | 110 | </div> |
— | — | @@ -111,9 +111,9 @@ |
112 | 112 | wfMsgExt( 'ur-relationship-count-friends', 'parsemag', $rel->user_name, $total, $invite_contacts_link->escapeFullURL() ). |
113 | 113 | '</div>'; |
114 | 114 | } else { |
115 | | - $output .= $wgOut->setPagetitle( wfMsg( 'ur-title-foe', $rel->user_name ) ); |
| 115 | + $output .= $wgOut->setPageTitle( wfMsg( 'ur-title-foe', $rel->user_name ) ); |
116 | 116 | $total = $foe_count; |
117 | | - $rem = wfMsg('ur-remove-relationship-foe'); |
| 117 | + $rem = wfMsg( 'ur-remove-relationship-foe' ); |
118 | 118 | $output .= '<div class="back-links"> |
119 | 119 | <a href="'.$back_link->escapeFullURL().'">'.wfMsg( 'ur-backlink', $rel->user_name ).'</a> |
120 | 120 | </div> |
— | — | @@ -160,15 +160,15 @@ |
161 | 161 | <div class=\"relationship-actions\">"; |
162 | 162 | if( $indivRelationship == false ) { |
163 | 163 | $output .= $wgLang->pipeList( array( |
164 | | - "<a href=\"" . $add_relationship_link->escapeFullURL( 'user=' . $user_safe . '&rel_type=1') . "\">" . wfMsg( 'ur-add-friend') . "</a>", |
165 | | - "<a href=\"" . $add_relationship_link->escapeFullURL( 'user=' . $user_safe . '&rel_type=2') . "\">" . wfMsg( 'ur-add-foe' ) . "</a>", |
| 164 | + '<a href="' . $add_relationship_link->escapeFullURL( 'user=' . $user_safe . '&rel_type=1' ) . '">' . wfMsg( 'ur-add-friend' ) . '</a> ', |
| 165 | + ' <a href="' . $add_relationship_link->escapeFullURL( 'user=' . $user_safe . '&rel_type=2' ) . '">' . wfMsg( 'ur-add-foe' ) . '</a> ', |
166 | 166 | '' |
167 | 167 | ) ); |
168 | 168 | } else if( $user_name == $wgUser->getName() ) { |
169 | | - $output .= "<a href=\"".$remove_relationship_link->escapeFullURL('user='.$user_safe)."\">".$rem."</a>"; |
170 | | - $output .= wfMsgExt( 'pipe-separator' , 'escapenoentities' ); |
| 169 | + $output .= '<a href="'.$remove_relationship_link->escapeFullURL( 'user=' . $user_safe ) . '">' . $rem . '</a> '; |
| 170 | + $output .= wfMsgExt( 'pipe-separator', 'escapenoentities' ); |
171 | 171 | } |
172 | | - $output .= "<a href=\"".$give_gift_link->escapeFullURL('user='.$user_safe)."\">".wfMsg('ur-give-gift')."</a>"; |
| 172 | + $output .= ' <a href="'.$give_gift_link->escapeFullURL( 'user=' . $user_safe ).'">'.wfMsg( 'ur-give-gift' ).'</a>'; |
173 | 173 | |
174 | 174 | $output .= '</div> |
175 | 175 | <div class="cleared"></div> |