Phrasentext statt Instanz von class \XF\Phrase

Admin

Administrator
Kirby: A XenForo phrase created in PHP code is an instance of class \XF\Phrase.

If you want it's string representation, you can just cast it to a string (as the class implements __toString magic method):

PHP:
$upgradeDescription[$userUpgradeId]['description'] = (string)\XF::phrase($descriptionPhrase);
 
Zurück
Oben