Blog: Ignore drafts when adding pages to list.
This commit is contained in:
parent
07527f8e33
commit
437d9d3743
@ -15,7 +15,7 @@ require "templates/header.php";
|
||||
<?php
|
||||
$dir_files = scandir(dirname(__FILE__), SCANDIR_SORT_DESCENDING);
|
||||
foreach($dir_files as $file_info) {
|
||||
if(!str_ends_with($file_info, ".cfg.php"))
|
||||
if(!str_ends_with($file_info, ".cfg.php") or str_starts_with($file_info, "draft_"))
|
||||
continue;
|
||||
|
||||
require dirname(__FILE__) . "/" . $file_info;
|
||||
|
Loading…
x
Reference in New Issue
Block a user