Use `sprintf`
authorCyperghost <olaf_schmitz_1@t-online.de>
Mon, 8 Apr 2024 09:21:53 +0000 (11:21 +0200)
committerCyperghost <olaf_schmitz_1@t-online.de>
Mon, 8 Apr 2024 09:21:53 +0000 (11:21 +0200)
wcfsetup/install/files/lib/data/style/Style.class.php

index df0c35707955c4b2b84beee83c50faa24c527d0e..536e6247344bbac2b1c2eea0187621d602976051 100644 (file)
@@ -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
+        );
     }
 
     /**