* @ingroup SpecialPage
*/
+use MediaWiki\MediaWikiServices;
use Wikimedia\Timestamp\TimestampException;
/**
*/
private function parseParams( FormOptions $opts, $par ) {
# Get parameters
- $par = $par !== null ? $par : '';
+ $par = $par ?? '';
$parms = explode( '/', $par );
$symsForAll = [ '*', 'all' ];
if ( $parms[0] != '' &&
private function getActionButtons( $formcontents ) {
$user = $this->getUser();
- $canRevDelete = $user->isAllowedAll( 'deletedhistory', 'deletelogentry' );
+ $canRevDelete = MediaWikiServices::getInstance()
+ ->getPermissionManager()
+ ->userHasAllRights( $user, 'deletedhistory', 'deletelogentry' );
$showTagEditUI = ChangeTags::showTagEditingUI( $user );
# If the user doesn't have the ability to delete log entries nor edit tags,
# don't bother showing them the button(s).