Merge "replaceAll.php: Allow empty values as target"

This commit is contained in:
jenkins-bot 2022-09-08 13:28:20 +00:00 committed by Gerrit Code Review
commit bf60096c5f

View file

@ -123,7 +123,7 @@ class ReplaceAll extends Maintenance {
private function getTarget() {
$ret = $this->getArg( 0 );
if ( !$ret ) {
if ( $ret === null ) {
$this->fatalError( "You have to specify a target." );
}
return [ $ret ];
@ -131,7 +131,7 @@ class ReplaceAll extends Maintenance {
private function getReplacement() {
$ret = $this->getArg( 1 );
if ( !$ret ) {
if ( $ret === null ) {
$this->fatalError( "You have to specify replacement text." );
}
return [ $ret ];