return wfMsgReal( $key, $args, true );
}
-/**
- * Get a message in the user interface language and replace wiki
- * links with clickable ones, escaping other HTML
- *
- * @param string $key Message key
- * @return string
- */
-function wfMsgWithLinks( $key ) {
- global $wgUser;
- $args = func_get_args();
- return $wgUser->getSkin()->formatLinksInComment( htmlspecialchars(
- call_user_func_array( 'wfMsg', $args ) ) );
-}
-
/**
* Same as above except doesn't transform the message
*/
return wfMsgReal( $key, $args, true, $forcontent );
}
-/**
- * Get a message in the content language and replace wiki
- * links with clickable ones, escaping other HTML
- *
- * @param string $key Message key
- * @return string
- */
-function wfMsgForContentWithLinks( $key ) {
- global $wgUser;
- return $wgUser->getSkin()->formatLinksInComment( htmlspecialchars(
- call_user_func_array( 'wfMsgForContent', func_get_args() ) ) );
-}
-
/**
* Same as above except doesn't transform the message
*/
function buildExpiryInput() {
$attribs = array( 'id' => 'expires' ) + $this->disabledAttrib;
return '<tr>'
- . '<td><label for="expires">' . wfMsgWithLinks( 'protectexpiry' ) . '</label></td>'
+ . '<td><label for="expires">' . wfMsgExt( 'protectexpiry', array( 'parseinline' ) ) . '</label></td>'
. '<td>' . Xml::input( 'mwProtect-expiry', 60, $this->mExpiry, $attribs ) . '</td>'
. '</tr>';
}
}
function getPageHeader() {
- return '<p>' . wfMsgWithLinks( 'withoutinterwiki-header' ) . '</p>';
+ return '<p>' . wfMsgExt( 'withoutinterwiki-header', array( 'parseinline' ) ) . '</p>';
}
function sortDescending() {