Skip to content

Commit

Permalink
fix: readme render order
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschubek committed Oct 29, 2024
1 parent 70c3f91 commit e6c5f3c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

define('VERSION', '3.6.0');
define('VERSION', '3.6.1');

define('PUBLIC_FOLDER', __DIR__ . '/public');

Expand Down Expand Up @@ -283,11 +283,11 @@ function downloadBatch(array $urls) {
// readme
$[if `process.env.README_RENDER === "true"`]$
// check if readme exists
foreach ($sorted_files as $file) {
foreach (explode(';', "${{`process.env.README_NAME`}}$") as $readme_name) {
foreach (explode(';', "${{`process.env.README_NAME`}}$") as $readme_name) {
foreach ($sorted_files as $file) {
if (mb_strtolower($file->name) === $readme_name) {
$readme = $file;
break;
break 2;
}
}
}
Expand Down

0 comments on commit e6c5f3c

Please sign in to comment.