summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-01-25 19:56:51 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-01-25 19:57:18 +0000
commitc50ff97d26d25286aa37e82d2f7d2b624b0f6178 (patch)
treeb68384a641b4d6d8c3c3076bd5e6d336c38e60ba
parent7364223c687afaeceb522114b4aa782ee5d67610 (diff)
downloadwebtrees-c50ff97d26d25286aa37e82d2f7d2b624b0f6178.tar.gz
webtrees-c50ff97d26d25286aa37e82d2f7d2b624b0f6178.tar.bz2
webtrees-c50ff97d26d25286aa37e82d2f7d2b624b0f6178.zip
Fix: 2133 - error in html keyword example template
-rw-r--r--app/Stats.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/Stats.php b/app/Stats.php
index 395fe41300..e68d40ccd6 100644
--- a/app/Stats.php
+++ b/app/Stats.php
@@ -6693,19 +6693,19 @@ class Stats
* Create any of the other blocks.
* Use as #callBlock:block_name#
*
- * @param string $block
+ * @param string $block_name
* @param string ...$params
*
* @return string
*/
- public function callBlock(string $block = '', ...$params): string
+ public function callBlock(string $block_name = '', ...$params): string
{
/** @var ModuleBlockInterface $block */
$block = Module::findByComponent('block', $this->tree, Auth::user())
- ->filter(function (ModuleInterface $block): bool {
- return $block->name() === $block && $block->name() !== 'html';
+ ->filter(function (ModuleInterface $block) use ($block_name): bool {
+ return $block->name() === $block_name && $block->name() !== 'html';
})
- ->first;
+ ->first();
if ($block === null) {
return '';