const apps = new Map(Object.entries({
{* this bypasses the route system to force rewritten urls *}
- {implode from=$rewriteTestApplications item=$rewriteTestApplication}'{$rewriteTestApplication->getPackage()|encodeJS}': '{$__wcf->getPath($rewriteTestApplication->getAbbreviation())}core-rewrite-test/?uuidHash={'sha256'|hash:WCF_UUID}'{/implode}
+ {implode from=$rewriteTestApplications item=$rewriteTestApplication}'{$rewriteTestApplication->getPackage()|encodeJS}': '{$__wcf->getPath($rewriteTestApplication->getAbbreviation())}core-rewrite-test/?uuidHash={$uuidHash}'{/implode}
}));
AcpUiOptionRewriteTest.init(apps);
{
parent::assignVariables();
+ if ($this->category->categoryName === "general") {
+ WCF::getTPL()->assign([
+ 'uuidHash' => \hash('sha256', \WCF_UUID),
+ ]);
+ }
+
WCF::getTPL()->assign([
'category' => $this->category,
'optionTree' => $this->optionTree,