/**
* This will be called immediately after the <body> tag. Split into
* two functions to make it easier to subclass.
+ * @return string
*/
function beforeContent() {
return $this->doBeforeContent();
return $this->doAfterContent();
}
- /** overloaded by derived classes */
+ /** overloaded by derived classes
+ * @return string
+ */
function doAfterContent() {
return '</div></div>';
}
}
$s = $wgLang->pipeList( array(
$s,
- '<a href="' . $title->escapeLocalURL( 'variant=' . $code ) . '">' . htmlspecialchars( $varname ) . '</a>'
+ '<a href="' . htmlspecialchars( $title->getLocalURL( 'variant=' . $code ) ) . '">' . htmlspecialchars( $varname ) . '</a>'
) );
}
}
}
function otherLanguages() {
- global $wgOut, $wgContLang, $wgHideInterlanguageLinks;
+ global $wgOut, $wgLang, $wgContLang, $wgHideInterlanguageLinks;
if ( $wgHideInterlanguageLinks ) {
return '';
$s = wfMsg( 'otherlanguages' ) . wfMsg( 'colon-separator' );
$first = true;
- if ( $wgContLang->isRTL() ) {
- $s .= '<span dir="LTR">';
+ if ( $wgLang->isRTL() ) {
+ $s .= '<span dir="ltr">';
}
foreach ( $a as $l ) {
$text == '' ? $l : $text );
}
- if ( $wgContLang->isRTL() ) {
+ if ( $wgLang->isRTL() ) {
$s .= '</span>';
}
/**
* Show a drop-down box of special pages
+ * @return string
*/
function specialPagesList() {
global $wgScript;
*/
function pageTitle() {
global $wgOut;
- $s = '<h1 class="pagetitle">' . $wgOut->getPageTitle() . '</h1>';
+ $s = '<h1 class="pagetitle"><span dir="auto">' . $wgOut->getPageTitle() . '</span></h1>';
return $s;
}
/**
* @deprecated in 1.19
+ * @return string
*/
function getQuickbarCompensator( $rows = 1 ) {
+ wfDeprecated( __METHOD__, '1.19' );
return "<td width='152' rowspan='{$rows}'> </td>";
}