Skip to content

Commit e4f12f5

Browse files
André L F S Baccijordikroon
authored andcommitted
Idempotence and opt-in / partial implantation
1 parent b31590c commit e4f12f5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/entities.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,8 @@ function loadXml( string $path , string $text , bool $expectedReplaced )
324324

325325
if ( trim( $text ) == "" )
326326
{
327-
fwrite( STDERR , "\n Empty entity (should it be in remove.ent?): '$path' \n" );
327+
if ( ! PARTIAL_IMPL )
328+
fwrite( STDERR , "\n Empty entity (should it be in remove.ent?): '$path' \n" );
328329
Entities::put( $path , $name , $text );
329330
return;
330331
}

0 commit comments

Comments
 (0)