diff --git a/src/SlmLocale/View/Helper/LocaleMenu.php b/src/SlmLocale/View/Helper/LocaleMenu.php index 20c9a57..ade280e 100644 --- a/src/SlmLocale/View/Helper/LocaleMenu.php +++ b/src/SlmLocale/View/Helper/LocaleMenu.php @@ -230,13 +230,12 @@ public function __invoke() /** * @param array $options * @return string - * @throws RuntimeException * @todo implement add way to completely default rendering for maximum flexibility (see Zend\View\Helper\Navigation::renderPartial) */ public function __toString() { if (! ($detector = $this->getDetector())) { - throw new RuntimeException('To assemble an url, a detector is required'); + return sprintf('