Index: trunk/extensions/SocialProfile/UserRelationship/SpecialAddRelationship.php |
— | — | @@ -29,7 +29,11 @@ |
30 | 30 | public function execute( $params ) { |
31 | 31 | global $wgUser, $wgOut, $wgRequest, $wgUploadPath, $wgUserRelationshipScripts; |
32 | 32 | |
33 | | - $this->setHeaders(); |
| 33 | + // Can't use $this->setHeaders(); here because then it'll set the page |
| 34 | + // title to <removerelationship> and we don't want that, we'll be |
| 35 | + // messing with the page title later on in the code |
| 36 | + $wgOut->setArticleRelated( false ); |
| 37 | + $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
34 | 38 | |
35 | 39 | $wgOut->addExtensionStyle( $wgUserRelationshipScripts . '/UserRelationship.css' ); |
36 | 40 | |
— | — | @@ -178,10 +182,10 @@ |
179 | 183 | $out = ''; |
180 | 184 | |
181 | 185 | if ( $this->relationship_type == 1 ) { |
182 | | - $out .= $wgOut->setPageTitle( wfMsg( 'ur-add-sent-title-friend', $this->user_name_to ) ); |
| 186 | + $wgOut->setPageTitle( wfMsg( 'ur-add-sent-title-friend', $this->user_name_to ) ); |
183 | 187 | $sent = wfMsg( 'ur-add-sent-message-friend', $this->user_name_to ); |
184 | 188 | } else { |
185 | | - $out .= $wgOut->setPageTitle( wfMsg( 'ur-add-sent-title-foe', $this->user_name_to ) ); |
| 189 | + $wgOut->setPageTitle( wfMsg( 'ur-add-sent-title-foe', $this->user_name_to ) ); |
186 | 190 | $sent = wfMsg( 'ur-add-sent-message-foe', $this->user_name_to ); |
187 | 191 | } |
188 | 192 | |
Index: trunk/extensions/SocialProfile/UserRelationship/SpecialRemoveRelationship.php |
— | — | @@ -28,7 +28,11 @@ |
29 | 29 | public function execute( $params ) { |
30 | 30 | global $wgUser, $wgOut, $wgRequest, $wgUploadPath, $wgUserRelationshipScripts; |
31 | 31 | |
32 | | - $this->setHeaders(); |
| 32 | + // Can't use $this->setHeaders(); here because then it'll set the page |
| 33 | + // title to <removerelationship> and we don't want that, we'll be |
| 34 | + // messing with the page title later on in the code |
| 35 | + $wgOut->setArticleRelated( false ); |
| 36 | + $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
33 | 37 | |
34 | 38 | $wgOut->addExtensionStyle( $wgUserRelationshipScripts . '/UserRelationship.css' ); |
35 | 39 | |