Skip to content

Commit

Permalink
Remove first error message
Browse files Browse the repository at this point in the history
  • Loading branch information
OAuthority committed Dec 12, 2024
1 parent f292174 commit 9ac583b
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions includes/Specials/SpecialManageWiki.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,6 @@ public function execute( $par ) {
$module = 'core';
}

if ( !$this->getContext()->getUser()->isAllowed( 'managewiki-' . $module ) ) {
$out->setPageTitle( $this->msg( 'managewiki-link-' . $module . '-view' )->text() );
if ( $module !== 'permissions' || $module !== 'namespaces' ) {
$out->addHTML(
Html::errorBox( $this->msg( 'managewiki-error-nopermission' )->escaped() )
);
$out->addWikiMsg( "managewiki-header-{$module}-view" );
}
} else {
$out->setPageTitle( $this->msg( 'managewiki-link-' . $module )->text() );
if ( $module !== 'permissions' || $module !== 'namespaces' ) {
$out->addWikiMsg( "managewiki-header-{$module}" );
}
}

$additional = $par[1] ?? '';
$filtered = $par[2] ?? $par[1] ?? '';

Expand Down Expand Up @@ -273,4 +258,8 @@ public function reusableFormSubmission( array $formData, HTMLForm $form ) {
protected function getGroupName() {
return 'wikimanage';
}

private function renderErrorMessage() {

}
}

0 comments on commit 9ac583b

Please sign in to comment.