From 3d432b84f53bd32b14f669bba3a450a9599a1174 Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Wed, 4 Dec 2024 14:00:03 +0100 Subject: [PATCH] Remove `defaultCoverPhoto` from bootstrap --- .../templates/headIncludeJavaScript.tpl | 1 - com.woltlab.wcf/templates/user.tpl | 2 +- ts/WoltLabSuite/Core/Bootstrap.ts | 3 +-- ts/WoltLabSuite/Core/BootstrapFrontend.ts | 2 -- .../Core/Component/User/CoverPhoto.ts | 17 ++++++++++------- .../files/js/WoltLabSuite/Core/Bootstrap.js | 2 +- .../js/WoltLabSuite/Core/BootstrapFrontend.js | 1 - .../Core/Component/User/CoverPhoto.js | 18 ++++++++++-------- 8 files changed, 23 insertions(+), 23 deletions(-) diff --git a/com.woltlab.wcf/templates/headIncludeJavaScript.tpl b/com.woltlab.wcf/templates/headIncludeJavaScript.tpl index 3c2bb79d09..4c72ec8b21 100644 --- a/com.woltlab.wcf/templates/headIncludeJavaScript.tpl +++ b/com.woltlab.wcf/templates/headIncludeJavaScript.tpl @@ -88,7 +88,6 @@ window.addEventListener('pageshow', function(event) { dynamicColorScheme: {if $__wcf->getStyleHandler()->getColorScheme() === 'system'}true{else}false{/if}, endpointUserPopover: {if $__wcf->getSession()->getPermission('user.profile.canViewUserProfile')}'{link controller='UserPopover'}{/link}'{else}''{/if}, executeCronjobs: {if $executeCronjobs}'{link controller="CronjobPerform"}{/link}'{else}undefined{/if}, - defaultCoverPhoto: '{unsafe:$__wcf->styleHandler->getStyle()->getCoverPhotoUrl()|encodeJS}', {if ENABLE_SHARE_BUTTONS} {assign var='__shareProviders' value="\n"|explode:SHARE_BUTTONS_PROVIDERS} shareButtonProviders: [ diff --git a/com.woltlab.wcf/templates/user.tpl b/com.woltlab.wcf/templates/user.tpl index b4a34e5d38..88d36daefc 100644 --- a/com.woltlab.wcf/templates/user.tpl +++ b/com.woltlab.wcf/templates/user.tpl @@ -115,7 +115,7 @@ {if $user->canEditCoverPhoto()}