From 9389ddbbae8276201d55912b6323b71c3ab544e3 Mon Sep 17 00:00:00 2001 From: Martin B Date: Sun, 21 Apr 2024 14:48:28 +0100 Subject: [PATCH] format code --- src/SpecialPage/SpecialResourceLoaderArticles.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SpecialPage/SpecialResourceLoaderArticles.php b/src/SpecialPage/SpecialResourceLoaderArticles.php index 722e6c3..976f0a4 100644 --- a/src/SpecialPage/SpecialResourceLoaderArticles.php +++ b/src/SpecialPage/SpecialResourceLoaderArticles.php @@ -157,7 +157,6 @@ private function addPage() { * @param array $formData */ public function addPageCB( $formData ) { - $output = $this->getOutput(); $dbw = wfGetDB( DB_PRIMARY ); $dbw->insert( 'resourceloaderarticles', @@ -168,6 +167,7 @@ public function addPageCB( $formData ) { 'rla_priority' => intval( $formData[ 'Priority' ] ) ] ); + $output = $this->getOutput(); $output->addWikiTextAsContent( '
' . $this->msg( 'resourceloaderarticles-success-add' )->text() @@ -238,7 +238,6 @@ private function editPage( $id ) { * @param array $formData */ public function editPageCB( $formData ) { - $output = $this->getOutput(); $dbw = wfGetDB( DB_PRIMARY ); $dbw->update( 'resourceloaderarticles', @@ -252,6 +251,7 @@ public function editPageCB( $formData ) { 'rla_id' => $formData[ 'Id' ] ] ); + $output = $this->getOutput(); $output->addWikiTextAsContent( '
' . $this->msg( 'resourceloaderarticles-success-edit' )->text()