Skip to content

Commit ab894b1

Browse files
authored
Merge pull request #49 from sorenmalling/master
BUGFIX: Pass string to flash message
2 parents 6d54661 + 0109be1 commit ab894b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/Controller/VarnishCacheController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public function purgeAllVarnishCacheAction(Site $site = null, $contentType = nul
172172
}
173173
$service = new VarnishBanService();
174174
$service->banAll($domains, $contentType);
175-
$this->addFlashMessage(new Message(sprintf('All varnish cache cleared for %s%s', $site ? 'site ' . $site->getName() : 'installation', $contentType ? ' with content type "' . $contentType . '"' : '')));
175+
$this->addFlashMessage(sprintf('All varnish cache cleared for %s%s', $site ? 'site ' . $site->getName() : 'installation', $contentType ? ' with content type "' . $contentType . '"' : ''));
176176
$this->redirect('index');
177177
}
178178

0 commit comments

Comments
 (0)