From 9ac583b602bf25ef4337cc9efad42eab1f2f9f6d Mon Sep 17 00:00:00 2001 From: OriginalAuthority Date: Thu, 12 Dec 2024 00:50:38 +0000 Subject: [PATCH] Remove first error message --- includes/Specials/SpecialManageWiki.php | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/includes/Specials/SpecialManageWiki.php b/includes/Specials/SpecialManageWiki.php index 1909ce9ea..31c826616 100644 --- a/includes/Specials/SpecialManageWiki.php +++ b/includes/Specials/SpecialManageWiki.php @@ -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] ?? ''; @@ -273,4 +258,8 @@ public function reusableFormSubmission( array $formData, HTMLForm $form ) { protected function getGroupName() { return 'wikimanage'; } + + private function renderErrorMessage() { + + } }