mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-21 22:17:44 -04:00
ensure English is always added to available languages, fixes #1208
bug got introduced in3668f1e3f4and started affecting release after896a49c8cf
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user