From e6c64faff69a4443beb9fdc3999d48de900233a6 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 25 Jun 2014 17:50:50 +0200 Subject: [PATCH] Fixed some minor issues --- .../install/files/lib/data/comment/LikeableComment.class.php | 2 -- .../event/UserFollowFollowingUserNotificationEvent.class.php | 2 +- .../event/UserProfileCommentLikeUserNotificationEvent.class.php | 2 +- ...serProfileCommentResponseLikeUserNotificationEvent.class.php | 2 +- ...erProfileCommentResponseOwnerUserNotificationEvent.class.php | 2 +- .../UserProfileCommentResponseUserNotificationEvent.class.php | 2 +- .../event/UserProfileCommentUserNotificationEvent.class.php | 2 +- 7 files changed, 6 insertions(+), 8 deletions(-) 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 )); } -- 2.20.1