<defaultvalue>0</defaultvalue>
<moddefaultvalue>1</moddefaultvalue>
<usersonly>1</usersonly>
+ <options>module_user_profile_wall</options>
</option>
<option name="mod.profileComment.canDeleteComment">
<categoryname>mod.profileComment</categoryname>
<defaultvalue>0</defaultvalue>
<moddefaultvalue>1</moddefaultvalue>
<usersonly>1</usersonly>
+ <options>module_user_profile_wall</options>
</option>
<option name="mod.profileComment.canModerateComment">
<categoryname>mod.profileComment</categoryname>
<defaultvalue>0</defaultvalue>
<moddefaultvalue>1</moddefaultvalue>
<usersonly>1</usersonly>
+ <options>module_user_profile_wall</options>
</option>
<!-- /mod.general -->
<categoryname>user.profileComment</categoryname>
<optiontype>boolean</optiontype>
<defaultvalue>1</defaultvalue>
+ <options>module_user_profile_wall</options>
</option>
<option name="user.profileComment.canEditComment">
<categoryname>user.profileComment</categoryname>
<optiontype>boolean</optiontype>
<defaultvalue>1</defaultvalue>
<usersonly>1</usersonly>
+ <options>module_user_profile_wall</options>
</option>
<option name="user.profileComment.canDeleteComment">
<categoryname>user.profileComment</categoryname>
<defaultvalue>0</defaultvalue>
<admindefaultvalue>1</admindefaultvalue>
<usersonly>1</usersonly>
+ <options>module_user_profile_wall</options>
</option>
<option name="user.profileComment.canDeleteCommentInOwnProfile">
<categoryname>user.profileComment</categoryname>
<optiontype>boolean</optiontype>
<defaultvalue>0</defaultvalue>
<usersonly>1</usersonly>
+ <options>module_user_profile_wall</options>
</option>
<!-- /user.profileComment -->
* @inheritDoc
*/
protected function getOptions() {
- return [
+ $options = [
self::NO_SELECTION_VALUE => 'wcf.global.noSelection',
self::NO_AVATAR => 'wcf.user.condition.avatar.noAvatar',
- self::AVATAR => 'wcf.user.condition.avatar.avatar',
- self::GRAVATAR => 'wcf.user.condition.avatar.gravatar'
+ self::AVATAR => 'wcf.user.condition.avatar.avatar'
];
+ if (MODULE_GRAVATAR) {
+ $options[self::GRAVATAR] = 'wcf.user.condition.avatar.gravatar';
+ }
+
+ return $options;
}
/**