Index: trunk/phase3/includes/ChangesFeed.php |
— | — | @@ -161,7 +161,7 @@ |
162 | 162 | |
163 | 163 | foreach( $sorted as $obj ) { |
164 | 164 | $title = Title::makeTitle( $obj->rc_namespace, $obj->rc_title ); |
165 | | - $talkpage = $title->getTalkPage(); |
| 165 | + $talkpage = MWNamespace::canTalk( $obj->rc_namespace ) ? $title->getTalkPage()->getFullUrl() : ''; |
166 | 166 | // Skip items with deleted content (avoids partially complete/inconsistent output) |
167 | 167 | if( $obj->rc_deleted ) continue; |
168 | 168 | $item = new FeedItem( |
— | — | @@ -170,7 +170,7 @@ |
171 | 171 | $obj->rc_this_oldid ? $title->getFullURL( 'diff=' . $obj->rc_this_oldid . '&oldid=prev' ) : $title->getFullURL(), |
172 | 172 | $obj->rc_timestamp, |
173 | 173 | ($obj->rc_deleted & Revision::DELETED_USER) ? wfMsgHtml('rev-deleted-user') : $obj->rc_user_text, |
174 | | - $talkpage->getFullURL() |
| 174 | + $talkpage |
175 | 175 | ); |
176 | 176 | $feed->outItem( $item ); |
177 | 177 | } |