mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-07-22 06:28:46 -04:00
ensure English is always added to available languages, fixes #1208
bug got introduced in3668f1e3f4
and started affecting release after896a49c8cf
This commit is contained in:
parent
826444bef7
commit
a7f720d825
3 changed files with 16 additions and 5 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue