limit to .md files
This commit is contained in:
parent
feb3fad070
commit
1baf2f76c9
2 changed files with 3 additions and 7 deletions
|
|
@ -124,7 +124,7 @@
|
|||
session_start();
|
||||
if (!isset($_SESSION['index']) || isset($_GET['reindex']) || empty($_SESSION['index']))
|
||||
{
|
||||
$files = glob($dir . '/*');
|
||||
$files = glob($dir . '/*.md');
|
||||
usort($files, function($a, $b)
|
||||
{
|
||||
return filemtime($b) - filemtime($a);
|
||||
|
|
|
|||
|
|
@ -39,10 +39,6 @@
|
|||
foreach($_SESSION['index'] as $path)
|
||||
{
|
||||
$name = basename($path);
|
||||
if (str_ends_with($name, '.del'))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($filter)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue