From 47424072001279063e69fd117e4fe1c1e4e5ce2d Mon Sep 17 00:00:00 2001 From: Olav van Schie Date: Mon, 26 Mar 2018 22:16:30 +0200 Subject: [PATCH] Fix dash in pushonce --- src/directives.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/directives.php b/src/directives.php index 6a37cc1..1674abf 100644 --- a/src/directives.php +++ b/src/directives.php @@ -234,7 +234,7 @@ 'pushonce' => function ($expression) { list($pushName, $pushSub) = explode(':', trim(substr($expression, 1, -1))); - $key = '__pushonce_'.$pushName.'_'.str_replace('-', '_', $pushSub); + $key = '__pushonce_'.str_replace('-', '_', $pushName).'_'.str_replace('-', '_', $pushSub); return "{$key})): \$__env->{$key} = 1; \$__env->startPush('{$pushName}'); ?>"; },