Index: trunk/extensions/Sudo/SpecialSudo.php |
— | — | @@ -94,10 +94,9 @@ |
95 | 95 | $this->setHeaders(); |
96 | 96 | $s = $wgUser->getSkin(); |
97 | 97 | $suUser = User::newFromId( $_SESSION['wsSudoId'] ); |
98 | | - $wgOut->addWikiMsgArray( 'sudo-success', array( |
99 | | - $s->makeLinkObj( $suUser->getUserPage(), htmlspecialchars($suUser->getName()) ), |
100 | | - $s->makeLinkObj( $wgUser->getUserPage(), htmlspecialchars($wgUser->getName()) ) ), |
101 | | - array( 'replaceafter' ) |
| 98 | + $wgOut->addHTML( wfMsgExt( 'sudo-success', array( 'parse', 'replaceafter' ), |
| 99 | + $s->makeLinkObj( $suUser->getUserPage(), htmlspecialchars( $suUser->getName() ) ), |
| 100 | + $s->makeLinkObj( $wgUser->getUserPage(), htmlspecialchars( $wgUser->getName() ) ) ) |
102 | 101 | ); |
103 | 102 | } |
104 | 103 | } |
— | — | @@ -123,12 +122,11 @@ |
124 | 123 | 'action' => $this->getTitle()->getFullURL( 'mode=unsudo' ) ) ) . |
125 | 124 | Html::Hidden( 'title', $this->getTitle()->getPrefixedText() ) |
126 | 125 | ); |
127 | | - $wgOut->addWikiMsgArray( 'sudo-unsudo', array( |
128 | | - $s->makeLinkObj( $suUser->getUserPage(), htmlspecialchars($suUser->getName()) ), |
129 | | - $s->makeLinkObj( $wgUser->getUserPage(), htmlspecialchars($wgUser->getName()) ) ), |
130 | | - array( 'replaceafter' ) |
131 | | - ); |
132 | 126 | $wgOut->addHTML( |
| 127 | + wfMsgExt( 'sudo-unsudo', array( 'parse', 'replaceafter' ), |
| 128 | + $s->makeLinkObj( $suUser->getUserPage(), htmlspecialchars( $suUser->getName() ) ), |
| 129 | + $s->makeLinkObj( $wgUser->getUserPage(), htmlspecialchars( $wgUser->getName() ) ) |
| 130 | + ) . |
133 | 131 | Xml::submitButton( wfMsg( 'sudo-unsudo-submit' ) ) . |
134 | 132 | Xml::closeElement( 'form' ) |
135 | 133 | ); |