From: Tim Düsterhus Date: Thu, 23 Jul 2020 09:27:41 +0000 (+0200) Subject: Fix export of style preview images X-Git-Tag: 5.3.0_Alpha_1~100^2~13 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c3e21b26547d71cfb0d92c7f21ca40818cd7f08e;p=GitHub%2FWoltLab%2FWCF.git Fix export of style preview images --- diff --git a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php index 83ddc32c90..5b08121955 100644 --- a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php +++ b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php @@ -778,8 +778,8 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject $xml->writeElement('date', $this->styleDate); $xml->writeElement('version', $this->styleVersion); $xml->writeElement('apiVersion', $this->apiVersion); - if ($this->image) $xml->writeElement('image', $this->image); - if ($this->image2x) $xml->writeElement('image2x', $this->image2x); + if ($this->image) $xml->writeElement('image', basename($this->image)); + if ($this->image2x) $xml->writeElement('image2x', basename($this->image2x)); if ($coverPhoto) $xml->writeElement('coverPhoto', basename(FileUtil::unifyDirSeparator($coverPhoto))); if ($this->copyright) $xml->writeElement('copyright', $this->copyright); if ($this->license) $xml->writeElement('license', $this->license);