From 6d9851bf85c502fde6a4d07c6329d739fd6a63ee Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Mon, 8 Apr 2024 11:21:53 +0200 Subject: [PATCH] Use `sprintf` --- wcfsetup/install/files/lib/data/style/Style.class.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/data/style/Style.class.php b/wcfsetup/install/files/lib/data/style/Style.class.php index df0c357079..536e624734 100644 --- a/wcfsetup/install/files/lib/data/style/Style.class.php +++ b/wcfsetup/install/files/lib/data/style/Style.class.php @@ -294,9 +294,12 @@ class Style extends DatabaseObject */ public function getFaviconManifest() { - return WCF::getPath() . - FileUtil::getRelativePath(WCF_DIR, $this->getAssetPath()) . - 'manifest-' . WCF::getLanguage()->languageID . '.json'; + return \sprintf( + '%s%smanifest-%d.json', + WCF::getPath(), + FileUtil::getRelativePath(WCF_DIR, $this->getAssetPath()), + WCF::getLanguage()->languageID + ); } /** -- 2.20.1