$page = Title::makeTitle( NS_USER, $userName );
}
+ // Wrap the output with <bdi> tags for directionality isolation
return self::link(
$page,
- htmlspecialchars( $altUserName !== false ? $altUserName : $userName ),
+ '<bdi>' . htmlspecialchars( $altUserName !== false ? $altUserName : $userName ) . '</bdi>',
[ 'class' => $classes ]
);
}
return null;
}
- $dbr = wfGetDB( DB_SLAVE );
+ $dbr = wfGetDB( DB_REPLICA );
// Up to the value of $wgShowRollbackEditCount revisions are counted
$res = $dbr->select(