$mainPageObj = Title::newMainPage();
$s = "\n<div id='content'>\n<div id='topbar'>" .
- '<table width="100%" border="0" cellspacing="0" cellpadding="8"><tr>';
+ '<table style="width: 100%;" cellspacing="0" cellpadding="8"><tr>';
$s .= '<td class="top" nowrap="nowrap">';
$s .= '<a href="' . htmlspecialchars( $mainPageObj->getLocalURL() ) . '">';
- $s .= '<span id="sitetitle">' . wfMsg( 'sitetitle' ) . '</span></a>';
+ $s .= '<span id="sitetitle">' . wfMessage( 'sitetitle' )->escaped() . '</span></a>';
- $s .= '</td><td class="top" id="top-syslinks" width="100%">';
+ $s .= '</td><td class="top" id="top-syslinks" style="width: 100%;">';
$s .= $this->sysLinks();
$s .= '</td></tr><tr><td class="top-subheader">';
$s .= '<font size="-1"><span id="sitesub">';
- $s .= htmlspecialchars( wfMsg( 'sitesubtitle' ) ) . '</span></font>';
+ $s .= wfMessage( 'sitesubtitle' )->escaped() . '</span></font>';
$s .= '</td><td class="top-linkcollection">';
$s .= '<font size="-1"><span id="langlinks">';
$s = "\n</div><br clear='all' />\n";
$s .= "\n<div id='footer'>";
- $s .= '<table width="98%" border="0" cellspacing="0"><tr>';
+ $s .= '<table style="width: 98%;" cellspacing="0"><tr>';
$s .= '<td class="bottom">';
$s .= $this->bottomLinks();
$s .= $this->getSkin()->getLanguage()->pipeList( array(
- "\n<br />" . Linker::link(
- Title::newMainPage(),
- null,
- array(),
- array(),
- array( 'known', 'noclasses' )
+ "\n<br />" . Linker::linkKnown(
+ Title::newMainPage()
),
$this->getSkin()->aboutLink(),
- $this->searchForm( wfMsg( 'qbfind' ) )
+ $this->searchForm( wfMessage( 'qbfind' )->text() )
) );
$s .= "\n<br />" . $this->pageStats();
$s = array(
$this->getSkin()->mainPageLink(),
Linker::linkKnown(
- Title::newFromText( wfMsgForContent( 'aboutpage' ) ),
- wfMsg( 'about' )
+ Title::newFromText( wfMessage( 'aboutpage' )->inContentLanguage()->text() ),
+ wfMessage( 'about' )->text()
),
Linker::linkKnown(
- Title::newFromText( wfMsgForContent( 'helppage' ) ),
- wfMsg( 'help' )
+ Title::newFromText( wfMessage( 'helppage' )->inContentLanguage()->text() ),
+ wfMessage( 'help' )->text()
),
Linker::linkKnown(
- Title::newFromText( wfMsgForContent( 'faqpage' ) ),
- wfMsg( 'faq' )
+ Title::newFromText( wfMessage( 'faqpage' )->inContentLanguage()->text() ),
+ wfMessage( 'faq' )->text()
),
Linker::specialLink( 'Specialpages' )
);
if ( $this->data['loggedin'] ) {
$s[] = Linker::linkKnown(
$lo,
- wfMsg( 'logout' ),
+ wfMessage( 'logout' )->text(),
array(),
$q
);
} else {
$s[] = Linker::linkKnown(
$li,
- wfMsg( 'login' ),
+ wfMessage( 'login' )->text(),
array(),
$q
);
$s .= '<strong>' . $this->editThisPage() . '</strong>';
$s .= $sep . Linker::linkKnown(
- Title::newFromText( wfMsgForContent( 'edithelppage' ) ),
- wfMsg( 'edithelp' )
+ Title::newFromText( wfMessage( 'edithelppage' )->inContentLanguage()->text() ),
+ wfMessage( 'edithelp' )->text()
);
if( $this->data['loggedin'] ) {
$s .= $this->menuHead( 'qbmyoptions' );
if ( $this->data['loggedin'] ) {
- $tl = Linker::link(
+ $tl = Linker::linkKnown(
$user->getTalkPage(),
- wfMsg( 'mytalk' ),
- array(),
- array(),
- array( 'known', 'noclasses' )
+ wfMessage( 'mytalk' )->escaped()
);
if ( $user->getNewtalk() ) {
$tl .= ' *';
}
- $s .= Linker::link(
+ $s .= Linker::linkKnown(
$user->getUserPage(),
- wfMsg( 'mypage' ),
- array(),
- array(),
- array( 'known', 'noclasses' )
+ wfMessage( 'mypage' )->escaped()
) . $sep . $tl . $sep . Linker::specialLink( 'Watchlist' )
. $sep .
- Linker::link(
+ Linker::linkKnown(
SpecialPage::getSafeTitleFor( 'Contributions', $user->getName() ),
- wfMsg( 'mycontris' ),
- array(),
- array(),
- array( 'known', 'noclasses' )
+ wfMessage( 'mycontris' )->escaped()
) . $sep . Linker::specialLink( 'Preferences' )
. $sep . Linker::specialLink( 'Userlogout' );
} else {
if( $wgSiteSupportPage ) {
$s .= $sep . '<a href="' . htmlspecialchars( $wgSiteSupportPage ) . '" class="internal">'
- . wfMsg( 'sitesupport' ) . '</a>';
+ . wfMessage( 'sitesupport' )->escaped() . '</a>';
}
- $s .= $sep . Linker::link(
+ $s .= $sep . Linker::linkKnown(
SpecialPage::getTitleFor( 'Specialpages' ),
- wfMsg( 'moredotdotdot' ),
- array(),
- array(),
- array( 'known', 'noclasses' )
+ wfMessage( 'moredotdotdot' )->text()
);
$s .= $sep . "\n</div>\n";
* @return string
*/
function menuHead( $key ) {
- $s = "\n<h6>" . wfMsg( $key ) . "</h6>";
+ $s = "\n<h6>" . wfMessage( $key )->text() . "</h6>";
return $s;
}
$s .= "<input type='text' id=\"searchInput{$this->searchboxes}\" class=\"mw-searchInput\" name=\"search\" size=\"14\" value=\""
. htmlspecialchars( substr( $search, 0, 256 ) ) . "\" /><br />"
- . "<input type='submit' id=\"searchGoButton{$this->searchboxes}\" class=\"searchButton\" name=\"go\" value=\"" . htmlspecialchars( wfMsg( 'searcharticle' ) ) . "\" />";
+ . "<input type='submit' id=\"searchGoButton{$this->searchboxes}\" class=\"searchButton\" name=\"go\" value=\"" . wfMessage( 'searcharticle' )->escaped() . "\" />";
if( $wgUseTwoButtonsSearchForm ) {
- $s .= "<input type='submit' id=\"mw-searchButton{$this->searchboxes}\" class=\"searchButton\" name=\"fulltext\" value=\"" . htmlspecialchars( wfMsg( 'search' ) ) . "\" />\n";
+ $s .= "<input type='submit' id=\"mw-searchButton{$this->searchboxes}\" class=\"searchButton\" name=\"fulltext\" value=\"" . wfMessage( 'search' )->escaped() . "\" />\n";
} else {
- $s .= '<div><a href="' . $action . '" rel="search">' . wfMsg( 'powersearch-legend' ) . "</a></div>\n";
+ $s .= '<div><a href="' . $action . '" rel="search">' . wfMessage( 'powersearch-legend' )->escaped() . "</a></div>\n";
}
$s .= '</form>';