This commit is contained in:
Bob den Otter
2019-03-13 07:25:14 +01:00
parent 2d638956c3
commit 3cbfef805b
3 changed files with 3 additions and 5 deletions
@@ -126,7 +126,7 @@ class ContentTypesParser extends BaseParser
if ($contentType['singleton']) {
$contentType['listing_records'] = 1;
} else if (isset($contentType['listing_records']) === false) {
} elseif (isset($contentType['listing_records']) === false) {
$contentType['listing_records'] = 6;
}
-1
View File
@@ -60,7 +60,6 @@ class ContentFixtures extends Fixture implements DependentFixtureInterface
$translationRepository = $manager->getRepository(Translation::class);
foreach ($this->config as $contentType) {
$amount = $contentType['singleton'] ? 1 : (int) ($contentType['listing_records'] * 2.5);
foreach (range(1, $amount) as $i) {
+2 -3
View File
@@ -74,10 +74,9 @@ class RecordExtension extends AbstractExtension
return $input;
}
public function pager(Environment $env, $records = null, string $template = '_sub_pager.twig', string $class = null, string $theme = null, int $surround = null)
public function pager(Environment $env, $records = null, string $template = '_sub_pager.twig', ?string $class = null, ?string $theme = null, ?int $surround = null)
{
if (!is_iterable($records)) {
if (! is_iterable($records)) {
return "<strong class='bolt_template_warning'>Warning: Not possible to paginate given object.</strong>";
}