Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions scripts/text-entities.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Comment thread
alfsb marked this conversation as resolved.
print "(skiped $lang/entities) ";
return;
}
else
Expand All @@ -266,6 +266,7 @@ function loadDirEntities( string $dir )
}
}

$dir = realpath( $dir );
$files = scandir( $dir );
foreach( $files as $file )
{
Expand Down
Loading