diff --git a/scripts/text-entities.php b/scripts/text-entities.php index 43f7dfce4f..44be5ed20b 100644 --- a/scripts/text-entities.php +++ b/scripts/text-entities.php @@ -251,12 +251,12 @@ static function checkReplaces( bool $debug ) function loadDirEntities( string $dir ) { - $dir = realpath( $dir ); - if ( $dir === false || ! is_dir( $dir ) ) + if ( realpath( $dir ) === false || ! is_dir( $dir ) ) { if ( PARTIAL_IMPL ) { - print "\n Skiped $lang/entities\n"; + global $lang; + print "(skiped $lang/entities) "; return; } else @@ -266,6 +266,7 @@ function loadDirEntities( string $dir ) } } + $dir = realpath( $dir ); $files = scandir( $dir ); foreach( $files as $file ) {