Skip to content

Commit

Permalink
Fix PHP memory issues
Browse files Browse the repository at this point in the history
Upstream patch from miraheze/ManageWiki
  • Loading branch information
AgentIsai authored Dec 9, 2023
1 parent 8a7ca19 commit 9772c3a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/Helpers/ManageWikiOOUIForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ public function getButtons() {
'required' => true
];

$field = $this->addFields( $descriptor )->getField( 'reason' );
$field = $this->hasField( 'reason' ) ?
$this->getField( 'reason' ) :
$this->addFields( $descriptor )->getField( 'reason' );

$html = $field->getInputOOUI( '' );

Expand Down

0 comments on commit 9772c3a

Please sign in to comment.