ensure English is always added to available languages, fixes #1208

bug got introduced in 3668f1e3f4 and
started affecting release after 896a49c8cf
This commit is contained in:
El RIDO
2023-12-09 11:39:53 +01:00
parent 826444bef7
commit a7f720d825
3 changed files with 16 additions and 5 deletions
+2 -1
View File
@@ -13,6 +13,7 @@
namespace PrivateBin\Data;
use Exception;
use GlobIterator;
use PrivateBin\Json;
/**
@@ -394,7 +395,7 @@ class Filesystem extends AbstractData
public function getAllPastes()
{
$pastes = array();
foreach (new \GlobIterator($this->_path . self::PASTE_FILE_PATTERN) as $file) {
foreach (new GlobIterator($this->_path . self::PASTE_FILE_PATTERN) as $file) {
if ($file->isFile()) {
$pastes[] = $file->getBasename('.php');
}