[BUGFIX] Fix invalid placeholder in exception message 33/47233/2
authorMarkus Klein <markus.klein@typo3.org>
Sun, 13 Mar 2016 16:23:36 +0000 (17:23 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Sun, 13 Mar 2016 16:32:39 +0000 (17:32 +0100)
The message of the ContentRenderingException must use %s
as correct placeholder.

Resolves: #75035
Releases: master, 7.6
Change-Id: Ie78997ead81fc308a4002cffca8dfa0a99b50ac2
Reviewed-on: https://review.typo3.org/47233
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php

index d7dae59..b649efc 100644 (file)
@@ -902,7 +902,7 @@ class ContentObjectRenderer
         $fullyQualifiedClassName = $this->contentObjectClassMap[$name];
         $contentObject = GeneralUtility::makeInstance($fullyQualifiedClassName, $this);
         if (!($contentObject instanceof AbstractContentObject)) {
-            throw new ContentRenderingException(sprintf('Registered content object class name "%" must be an instance of AbstractContentObject, but is not!', $fullyQualifiedClassName), 1422564295);
+            throw new ContentRenderingException(sprintf('Registered content object class name "%s" must be an instance of AbstractContentObject, but is not!', $fullyQualifiedClassName), 1422564295);
         }
         return $contentObject;
     }