Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -2049,7 +2049,7 @@ |
2050 | 2050 | $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
2051 | 2051 | $wgOut->setArticleRelated( false ); |
2052 | 2052 | |
2053 | | - $wgOut->addHTML( wfMsgWikiHtml( 'whitelistedittext', $loginLink ) ); |
| 2053 | + $wgOut->addWikiMsgArray( 'whitelistedittext', array( $loginLink ), array( 'replaceafter' ) ); |
2054 | 2054 | $wgOut->returnToMain( false, $wgTitle ); |
2055 | 2055 | } |
2056 | 2056 | |
Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -2063,7 +2063,7 @@ |
2064 | 2064 | array( 'returnto' => $this->getTitle()->getPrefixedText() ), |
2065 | 2065 | array( 'known', 'noclasses' ) |
2066 | 2066 | ); |
2067 | | - $this->addHTML( wfMsgWikiHtml( 'loginreqpagetext', $loginLink ) ); |
| 2067 | + $this->addWikiMsgArray( 'loginreqpagetext', array( $loginLink ), array( 'replaceafter' ) ); |
2068 | 2068 | $this->addHTML( "\n<!--" . $this->getTitle()->getPrefixedUrl() . '-->' ); |
2069 | 2069 | |
2070 | 2070 | # Don't return to the main page if the user can't read it |
Index: trunk/phase3/includes/specials/SpecialAllpages.php |
— | — | @@ -301,7 +301,7 @@ |
302 | 302 | $n = 0; |
303 | 303 | |
304 | 304 | if ( !$fromList || !$toList ) { |
305 | | - $out = wfMsgWikiHtml( 'allpagesbadtitle' ); |
| 305 | + $out = wfMsgExt( 'allpagesbadtitle', 'parse' ); |
306 | 306 | } elseif ( !in_array( $namespace, array_keys( $namespaces ) ) ) { |
307 | 307 | // Show errormessage and reset to NS_MAIN |
308 | 308 | $out = wfMsgExt( 'allpages-bad-ns', array( 'parseinline' ), $namespace ); |
Index: trunk/phase3/includes/specials/SpecialUndelete.php |
— | — | @@ -821,28 +821,26 @@ |
822 | 822 | } else { |
823 | 823 | $openDiv = '<div id="mw-undelete-revision">'; |
824 | 824 | } |
| 825 | + $wgOut->addHTML( $openDiv ); |
825 | 826 | |
826 | 827 | // Revision delete links |
827 | 828 | $canHide = $wgUser->isAllowed( 'deleterevision' ); |
828 | | - if( $this->mDiff ) { |
829 | | - $revdlink = ''; // diffs already have revision delete links |
830 | | - } else if( $canHide || ($rev->getVisibility() && $wgUser->isAllowed('deletedhistory')) ) { |
| 829 | + if ( !$this->mDiff && ( $canHide || ( $rev->getVisibility() && $wgUser->isAllowed( 'deletedhistory' ) ) ) ) { |
831 | 830 | if( !$rev->userCan(Revision::DELETED_RESTRICTED ) ) { |
832 | | - $revdlink = $skin->revDeleteLinkDisabled( $canHide ); // revision was hidden from sysops |
| 831 | + $wgOut->addHTML( $skin->revDeleteLinkDisabled( $canHide ) ); // revision was hidden from sysops |
833 | 832 | } else { |
834 | 833 | $query = array( |
835 | 834 | 'type' => 'archive', |
836 | 835 | 'target' => $this->mTargetObj->getPrefixedDBkey(), |
837 | 836 | 'ids' => $rev->getTimestamp() |
838 | 837 | ); |
839 | | - $revdlink = $skin->revDeleteLink( $query, |
840 | | - $rev->isDeleted( File::DELETED_RESTRICTED ), $canHide ); |
| 838 | + $wgOut->addHTML( $skin->revDeleteLink( $query, |
| 839 | + $rev->isDeleted( File::DELETED_RESTRICTED ), $canHide ) ); |
841 | 840 | } |
842 | | - } else { |
843 | | - $revdlink = ''; |
844 | 841 | } |
845 | 842 | |
846 | | - $wgOut->addHTML( $openDiv . $revdlink . wfMsgWikiHtml( 'undelete-revision', $link, $time, $user, $d, $t ) . '</div>' ); |
| 843 | + $wgOut->addWikiMsgArray( 'undelete-revision', array( $link, $time, $user, $d, $t ), array( 'replaceafter' ) ); |
| 844 | + $wgOut->addHTML( '</div>' ); |
847 | 845 | wfRunHooks( 'UndeleteShowRevision', array( $this->mTargetObj, $rev ) ); |
848 | 846 | |
849 | 847 | if( $this->mPreview ) { |
— | — | @@ -1116,7 +1114,7 @@ |
1117 | 1115 | Xml::openElement( 'table', array( 'id' => 'mw-undelete-table' ) ) . |
1118 | 1116 | "<tr> |
1119 | 1117 | <td colspan='2' class='mw-undelete-extrahelp'>" . |
1120 | | - wfMsgWikiHtml( 'undeleteextrahelp' ) . |
| 1118 | + wfMsgExt( 'undeleteextrahelp', 'parse' ) . |
1121 | 1119 | "</td> |
1122 | 1120 | </tr> |
1123 | 1121 | <tr> |
— | — | @@ -1410,7 +1408,7 @@ |
1411 | 1409 | |
1412 | 1410 | $skin = $wgUser->getSkin(); |
1413 | 1411 | $link = $skin->linkKnown( $this->mTargetObj ); |
1414 | | - $wgOut->addHTML( wfMsgWikiHtml( 'undeletedpage', $link ) ); |
| 1412 | + $wgOut->addWikiMsgArray( 'undeletedpage', array( $link ), array( 'replaceafter' ) ); |
1415 | 1413 | } else { |
1416 | 1414 | $wgOut->showFatalError( wfMsg( "cannotundelete" ) ); |
1417 | 1415 | $wgOut->addHTML( '<p>' . wfMsgHtml( "undeleterevdel" ) . '</p>' ); |
Index: trunk/phase3/includes/specials/SpecialUserlogin.php |
— | — | @@ -231,7 +231,7 @@ |
232 | 232 | # Confirm that the account was created |
233 | 233 | $self = SpecialPage::getTitleFor( 'Userlogin' ); |
234 | 234 | $wgOut->setPageTitle( wfMsgHtml( 'accountcreated' ) ); |
235 | | - $wgOut->addHTML( wfMsgWikiHtml( 'accountcreatedtext', $u->getName() ) ); |
| 235 | + $wgOut->addWikiMsg( 'accountcreatedtext', $u->getName() ); |
236 | 236 | $wgOut->returnToMain( false, $self ); |
237 | 237 | wfRunHooks( 'AddNewAccount', array( $u, false ) ); |
238 | 238 | $u->addNewUserLogEntry( false, $this->mReason ); |
— | — | @@ -680,7 +680,7 @@ |
681 | 681 | break; |
682 | 682 | case self::NOT_EXISTS: |
683 | 683 | if( $wgUser->isAllowed( 'createaccount' ) ) { |
684 | | - $this->mainLoginForm( wfMsgWikiHtml( 'nosuchuser', htmlspecialchars( $this->mUsername ) ) ); |
| 684 | + $this->mainLoginForm( wfMsgExt( 'nosuchuser', 'parseinline', $this->mUsername ) ); |
685 | 685 | } else { |
686 | 686 | $this->mainLoginForm( wfMsg( 'nosuchusershort', htmlspecialchars( $this->mUsername ) ) ); |
687 | 687 | } |
— | — | @@ -775,7 +775,7 @@ |
776 | 776 | return; |
777 | 777 | } |
778 | 778 | if ( 0 == $u->getID() ) { |
779 | | - $this->mainLoginForm( wfMsgWikiHtml( 'nosuchuser', htmlspecialchars( $u->getName() ) ) ); |
| 779 | + $this->mainLoginForm( wfMsgExt( 'nosuchuser', 'parseinline', $u->getName() ) ); |
780 | 780 | return; |
781 | 781 | } |
782 | 782 | |
Index: trunk/phase3/includes/specials/SpecialPrefixindex.php |
— | — | @@ -126,7 +126,7 @@ |
127 | 127 | $namespaces = $wgContLang->getNamespaces(); |
128 | 128 | |
129 | 129 | if ( !$prefixList || !$fromList ) { |
130 | | - $out = wfMsgWikiHtml( 'allpagesbadtitle' ); |
| 130 | + $out = wfMsgExt( 'allpagesbadtitle', 'parse' ); |
131 | 131 | } elseif ( !in_array( $namespace, array_keys( $namespaces ) ) ) { |
132 | 132 | // Show errormessage and reset to NS_MAIN |
133 | 133 | $out = wfMsgExt( 'allpages-bad-ns', array( 'parseinline' ), $namespace ); |
Index: trunk/phase3/includes/specials/SpecialUpload.php |
— | — | @@ -698,7 +698,7 @@ |
699 | 699 | 'page' => $filename |
700 | 700 | ) |
701 | 701 | ); |
702 | | - $warning = wfMsgWikiHtml( 'filewasdeleted', $llink ); |
| 702 | + $warning = wfMsgExt( 'filewasdeleted', array( 'parse', 'replaceafter' ), $llink ); |
703 | 703 | } |
704 | 704 | |
705 | 705 | return $warning; |
— | — | @@ -910,16 +910,16 @@ |
911 | 911 | # Everything not permitted is banned |
912 | 912 | $extensionsList = |
913 | 913 | '<div id="mw-upload-permitted">' . |
914 | | - wfMsgWikiHtml( 'upload-permitted', $wgLang->commaList( $wgFileExtensions ) ) . |
| 914 | + wfMsgExt( 'upload-permitted', 'parse', $wgLang->commaList( $wgFileExtensions ) ) . |
915 | 915 | "</div>\n"; |
916 | 916 | } else { |
917 | 917 | # We have to list both preferred and prohibited |
918 | 918 | $extensionsList = |
919 | 919 | '<div id="mw-upload-preferred">' . |
920 | | - wfMsgWikiHtml( 'upload-preferred', $wgLang->commaList( $wgFileExtensions ) ) . |
| 920 | + wfMsgExt( 'upload-preferred', 'parse', $wgLang->commaList( $wgFileExtensions ) ) . |
921 | 921 | "</div>\n" . |
922 | 922 | '<div id="mw-upload-prohibited">' . |
923 | | - wfMsgWikiHtml( 'upload-prohibited', $wgLang->commaList( $wgFileBlacklist ) ) . |
| 923 | + wfMsgExt( 'upload-prohibited', 'parse', $wgLang->commaList( $wgFileBlacklist ) ) . |
924 | 924 | "</div>\n"; |
925 | 925 | } |
926 | 926 | } else { |
Index: trunk/phase3/includes/specials/SpecialWatchlist.php |
— | — | @@ -57,12 +57,12 @@ |
58 | 58 | if( $wgUser->isAnon() ) { |
59 | 59 | $wgOut->setPageTitle( wfMsg( 'watchnologin' ) ); |
60 | 60 | $llink = $skin->linkKnown( |
61 | | - SpecialPage::getTitleFor( 'Userlogin' ), |
| 61 | + SpecialPage::getTitleFor( 'Userlogin' ), |
62 | 62 | wfMsgHtml( 'loginreqlink' ), |
63 | 63 | array(), |
64 | 64 | array( 'returnto' => $specialTitle->getPrefixedText() ) |
65 | 65 | ); |
66 | | - $wgOut->addHTML( wfMsgWikiHtml( 'watchlistanontext', $llink ) ); |
| 66 | + $wgOut->addWikiMsgArray( 'watchlistanontext', array( $llink ), array( 'replaceafter' ) ); |
67 | 67 | return; |
68 | 68 | } |
69 | 69 | |
Index: trunk/phase3/includes/specials/SpecialConfirmemail.php |
— | — | @@ -68,7 +68,7 @@ |
69 | 69 | array(), |
70 | 70 | array( 'returnto' => $this->getTitle()->getPrefixedText() ) |
71 | 71 | ); |
72 | | - $wgOut->addHTML( wfMsgWikiHtml( 'confirmemail_needlogin', $llink ) ); |
| 72 | + $wgOut->addWikiMsgArray( 'confirmemail_needlogin', array( $llink ), array( 'replaceafter' ) ); |
73 | 73 | } |
74 | 74 | } else { |
75 | 75 | $this->attemptConfirm( $code ); |