Skip to content

Commit

Permalink
Fix memory issues under php 8.2 (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
paladox committed Nov 3, 2023
1 parent 7aabed1 commit 4fb5fd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion includes/Helpers/ManageWikiOOUIForm.php
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
2 changes: 1 addition & 1 deletion maintenance/populateWikiSettings.php
Expand Up @@ -33,7 +33,7 @@ public function execute() {

foreach ( $settingsource as $input ) {
$wikiDB = explode( '|', $input, 2 );
list( $DBname, $settingvalue ) = array_pad( $wikiDB, 2, '' );
[ $DBname, $settingvalue ] = array_pad( $wikiDB, 2, '' );

$this->output( "Setting $settingvalue for $DBname\n" );

Expand Down

0 comments on commit 4fb5fd1

Please sign in to comment.