This commit is contained in:
Djamil Legato
2014-10-14 13:13:55 -07:00
parent 3f6b5e35de
commit 19bbfd0a50
2 changed files with 6 additions and 7 deletions

View File

@@ -62,7 +62,7 @@ class Pages
/**
* Constructor
*
* @params Grav $c
* @param Grav $c
*/
public function __construct(Grav $c)
{
@@ -391,8 +391,6 @@ class Pages
/** @var Taxonomy $taxonomy */
$taxonomy = $this->grav['taxonomy'];
$last_modified = 0;
// how should we check for last modified? Default is by file
switch (strtolower($config->get('system.cache.check.method', 'file'))) {
case 'none':
@@ -432,7 +430,7 @@ class Pages
* Recursive function to load & build page relationships.
*
* @param string $directory
* @param null $parent
* @param Page|null $parent
* @return Page
* @throws \RuntimeException
* @internal

View File

@@ -225,9 +225,10 @@ class TwigExtension extends \Twig_Extension
/**
* Sorts a collection by key
*
* @param string $input
* @param string $filter
* @param string $direction
* @param array $input
* @param string $filter
* @param array|int $direction
*
* @return string
*/
public function sortByKeyFilter($input, $filter, $direction = SORT_ASC)