From: Alexander Ebert Date: Wed, 25 Jun 2014 15:50:50 +0000 (+0200) Subject: Fixed some minor issues X-Git-Tag: 2.1.0_Alpha_1~669^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e6c64faff69a4443beb9fdc3999d48de900233a6;p=GitHub%2FWoltLab%2FWCF.git Fixed some minor issues --- diff --git a/wcfsetup/install/files/lib/data/comment/LikeableComment.class.php b/wcfsetup/install/files/lib/data/comment/LikeableComment.class.php index d81d4531d7..9ea3bef730 100644 --- a/wcfsetup/install/files/lib/data/comment/LikeableComment.class.php +++ b/wcfsetup/install/files/lib/data/comment/LikeableComment.class.php @@ -8,8 +8,6 @@ use wcf\system\user\notification\object\CommentLikeUserNotificationObject; use wcf\system\user\notification\UserNotificationHandler; use wcf\system\WCF; - - /** * Likeable object implementation for comments. * diff --git a/wcfsetup/install/files/lib/system/user/notification/event/UserFollowFollowingUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/UserFollowFollowingUserNotificationEvent.class.php index 475eea5430..8421991168 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/UserFollowFollowingUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/UserFollowFollowingUserNotificationEvent.class.php @@ -42,7 +42,7 @@ class UserFollowFollowingUserNotificationEvent extends AbstractUserNotificationE 'author' => $this->author, 'authors' => $authors, 'count' => $count, - 'others' => max($count - 1, 0) + 'others' => $count - 1 )); } diff --git a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentLikeUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentLikeUserNotificationEvent.class.php index 751d27882e..f96c2cc617 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentLikeUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentLikeUserNotificationEvent.class.php @@ -53,7 +53,7 @@ class UserProfileCommentLikeUserNotificationEvent extends AbstractUserNotificati 'authors' => $authors, 'comment' => $this->userNotificationObject, 'count' => $count, - 'others' => max($count - 1, 0), + 'others' => $count - 1, 'owner' => $owner )); } diff --git a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseLikeUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseLikeUserNotificationEvent.class.php index c8c077960d..a33c12a5f7 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseLikeUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseLikeUserNotificationEvent.class.php @@ -56,7 +56,7 @@ class UserProfileCommentResponseLikeUserNotificationEvent extends AbstractUserNo 'authors' => $authors, 'commentUser' => $commentUser, 'count' => $count, - 'others' => max($count - 1, 0), + 'others' => $count - 1, 'owner' => $owner )); } diff --git a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseOwnerUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseOwnerUserNotificationEvent.class.php index 1cac2542bc..6ba0b94a47 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseOwnerUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseOwnerUserNotificationEvent.class.php @@ -59,7 +59,7 @@ class UserProfileCommentResponseOwnerUserNotificationEvent extends AbstractUserN 'author' => $commentAuthor, 'authors' => $authors, 'count' => $count, - 'others' => max($count - 1, 0) + 'others' => $count - 1 )); } diff --git a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseUserNotificationEvent.class.php index 224e647b8a..c3f2c4b0e0 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseUserNotificationEvent.class.php @@ -58,7 +58,7 @@ class UserProfileCommentResponseUserNotificationEvent extends AbstractUserNotifi return $this->getLanguage()->getDynamicVariable('wcf.user.notification.commentResponse.message.stacked', array( 'authors' => $authors, 'count' => $count, - 'others' => max($count - 1, 0), + 'others' => $count - 1, 'owner' => $owner )); } diff --git a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentUserNotificationEvent.class.php index 09eaef60dd..5851a937ec 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentUserNotificationEvent.class.php @@ -48,7 +48,7 @@ class UserProfileCommentUserNotificationEvent extends AbstractUserNotificationEv 'author' => $this->author, 'authors' => $authors, 'count' => $count, - 'others' => max($count - 1, 0) + 'others' => $count - 1 )); }