Index: trunk/extensions/MetavidWiki/includes/MV_MetavidInterface/MV_EditPageAjax.php |
— | — | @@ -159,7 +159,7 @@ |
160 | 160 | $stream_name = MV_Stream::getStreamNameFromId( $mvd->stream_id ); |
161 | 161 | |
162 | 162 | $lTitle = Title::makeTitle( NS_SPECIAL, 'Userlogin' ); |
163 | | - $loginLink = $sk->makeLinkObj( $lTitle, wfMsg( 'login' ), 'returnto=' . MWNamespace::getCanonicalName( MV_NS_STREAM ) . ':' . $stream_name ); |
| 163 | + $loginLink = $lTitle->getFullURL('returnto=' . MWNamespace::getCanonicalName( MV_NS_STREAM ) . ':' . $stream_name ); |
164 | 164 | |
165 | 165 | $wgOut->addHTML( wfMsg( 'mv_user_cant_edit', $loginLink, $cancel ) ); |
166 | 166 | $wgOut->readOnlyPage( $this->mArticle->getContent(), true, $permErrors ); |
Index: trunk/extensions/MetavidWiki/languages/MV_Messages.php |
— | — | @@ -227,7 +227,7 @@ |
228 | 228 | 'mv_missing_stream_text' => 'The stream you requested <b>$1</b> is not available.<br /> |
229 | 229 | You may want to check the <a href="$2">Stream list</a><br /> |
230 | 230 | Or you may want to <a href="$3">Add the stream</a>.', |
231 | | - 'mv_user_cant_edit' => 'You may have to $1 to edit, $2', // $1 is login link and $2 is cancel link |
| 231 | + 'mv_user_cant_edit' => 'You may have to [$1 login] to edit, $2', // $1 is login link and $2 is cancel link |
232 | 232 | |
233 | 233 | 'mv_add_stream_file' => 'Add stream file', |
234 | 234 | 'mv_media_path' => 'media path', |