mirror of
https://github.com/getgrav/grav.git
synced 2026-02-22 14:38:13 +01:00
Fix small spellchecker
This commit is contained in:
@@ -232,8 +232,9 @@ abstract class Folder
|
||||
/**
|
||||
* Recursively delete directory from filesystem.
|
||||
*
|
||||
* @param string $target
|
||||
* @param string $target
|
||||
* @throws \RuntimeException
|
||||
* @return bool
|
||||
*/
|
||||
public static function delete($target)
|
||||
{
|
||||
|
||||
@@ -226,15 +226,15 @@ class Collection extends Iterator
|
||||
$start = strtotime($startDate);
|
||||
$end = $endDate ? strtotime($endDate) : strtotime("now +1000 years");
|
||||
|
||||
$daterange = [];
|
||||
$date_range = [];
|
||||
|
||||
foreach ($this->items as $path => $slug) {
|
||||
$page = $this->pages->get($path);
|
||||
if ($page->date() > $start && $page->date() < $end) {
|
||||
$daterange[$path] = $slug;
|
||||
$date_range[$path] = $slug;
|
||||
}
|
||||
}
|
||||
$this->items = $daterange;
|
||||
$this->items = $date_range;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user