mirror of
https://github.com/getgrav/grav.git
synced 2026-07-07 08:42:22 +02:00
Merge branch 'develop' into feature/gpm
This commit is contained in:
@@ -39,6 +39,12 @@ class Config extends Data
|
||||
'' => ['user/plugins'],
|
||||
]
|
||||
],
|
||||
'plugin' => [
|
||||
'type' => 'ReadOnlyStream',
|
||||
'prefixes' => [
|
||||
'' => ['user/plugins'],
|
||||
]
|
||||
],
|
||||
'themes' => [
|
||||
'type' => 'ReadOnlyStream',
|
||||
'prefixes' => [
|
||||
|
||||
@@ -1136,7 +1136,7 @@ class Page
|
||||
* @param bool $modular|null whether or not to return modular children
|
||||
* @return Collection
|
||||
*/
|
||||
public function children($type = Page::ALL_PAGES)
|
||||
public function children($type = Page::STANDARD_PAGES)
|
||||
{
|
||||
/** @var Pages $pages */
|
||||
$pages = self::$grav['pages'];
|
||||
@@ -1482,7 +1482,7 @@ class Page
|
||||
$results = $this->children(Page::MODULAR_PAGES);
|
||||
break;
|
||||
case 'children':
|
||||
$results = $this->children(Page::NORMAL_PAGES);
|
||||
$results = $this->children(Page::STANDARD_PAGES);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ class StreamsServiceProvider implements ServiceProviderInterface
|
||||
$self = $this;
|
||||
|
||||
$container['locator'] = function($c) use ($self) {
|
||||
$locator = new UniformResourceLocator;
|
||||
$locator = new UniformResourceLocator(ROOT_DIR);
|
||||
$self->init($c, $locator);
|
||||
|
||||
return $locator;
|
||||
|
||||
Reference in New Issue
Block a user