mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ReplaceText
synced 2024-11-28 00:20:00 +00:00
Merge "replaceAll.php: Allow empty values as target"
This commit is contained in:
commit
bf60096c5f
|
@ -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 ];
|
||||
|
|
Loading…
Reference in a new issue