Ignore module settings when exporting data
authorAlexander Ebert <ebert@woltlab.com>
Mon, 21 May 2018 19:03:56 +0000 (21:03 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 21 May 2018 19:03:56 +0000 (21:03 +0200)
wcfsetup/install/files/lib/acp/action/UserExportGdprAction.class.php

index d68487bb94dca10077572774f54549a24cb1dee8..5e5025402aee5bb5aed6ce3baeec07ec17d2778d 100644 (file)
@@ -263,15 +263,13 @@ class UserExportGdprAction extends AbstractAction {
                        if ($this->user->{$property}) $data[$property] = $this->user->{$property};
                }
                
-               if ($this->user->avatarID || (MODULE_GRAVATAR && $this->user->enableGravatar)) {
+               if ($this->user->avatarID || $this->user->enableGravatar) {
                        $data['avatarURL'] = $this->user->getAvatar()->getURL();
                }
                
-               if (MODULE_USER_COVER_PHOTO) {
-                       $coverPhoto = $this->user->getCoverPhoto(true);
-                       if (!($coverPhoto instanceof DefaultUserCoverPhoto)) {
-                               $data['coverPhotoURL'] = $coverPhoto->getURL();
-                       }
+               $coverPhoto = $this->user->getCoverPhoto(true);
+               if (!($coverPhoto instanceof DefaultUserCoverPhoto)) {
+                       $data['coverPhotoURL'] = $coverPhoto->getURL();
                }
                
                return $data;