Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
iMarbot committed Apr 21, 2024
1 parent 7ca46da commit 9389ddb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SpecialPage/SpecialResourceLoaderArticles.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ private function addPage() {
* @param array $formData
*/
public function addPageCB( $formData ) {
$output = $this->getOutput();
$dbw = wfGetDB( DB_PRIMARY );
$dbw->insert(
'resourceloaderarticles',
Expand All @@ -168,6 +167,7 @@ public function addPageCB( $formData ) {
'rla_priority' => intval( $formData[ 'Priority' ] )
]
);
$output = $this->getOutput();
$output->addWikiTextAsContent(
'<div class="success">'
. $this->msg( 'resourceloaderarticles-success-add' )->text()
Expand Down Expand Up @@ -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',
Expand All @@ -252,6 +251,7 @@ public function editPageCB( $formData ) {
'rla_id' => $formData[ 'Id' ]
]
);
$output = $this->getOutput();
$output->addWikiTextAsContent(
'<div class="success">'
. $this->msg( 'resourceloaderarticles-success-edit' )->text()
Expand Down

0 comments on commit 9389ddb

Please sign in to comment.