Fixed some minor issues
authorAlexander Ebert <ebert@woltlab.com>
Wed, 25 Jun 2014 15:50:50 +0000 (17:50 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 25 Jun 2014 15:50:50 +0000 (17:50 +0200)
wcfsetup/install/files/lib/data/comment/LikeableComment.class.php
wcfsetup/install/files/lib/system/user/notification/event/UserFollowFollowingUserNotificationEvent.class.php
wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentLikeUserNotificationEvent.class.php
wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseLikeUserNotificationEvent.class.php
wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseOwnerUserNotificationEvent.class.php
wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseUserNotificationEvent.class.php
wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentUserNotificationEvent.class.php

index d81d4531d73f4d68c23052189834119edb158285..9ea3bef730a89eb5ad01c4dfc56864bd9c54f5a9 100644 (file)
@@ -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.
  * 
index 475eea54300917c65c5647fcd96865f04336c3f2..8421991168bb6506e2c44646398eb2c2241d5063 100644 (file)
@@ -42,7 +42,7 @@ class UserFollowFollowingUserNotificationEvent extends AbstractUserNotificationE
                                'author' => $this->author,
                                'authors' => $authors,
                                'count' => $count,
-                               'others' => max($count - 1, 0)
+                               'others' => $count - 1
                        ));
                }
                
index 751d27882ee6f298fdaff987fa6dbc6370cc2729..f96c2cc6179cce646ddbafa7b6fbcab5f646693c 100644 (file)
@@ -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
                        ));
                }
index c8c077960d3b93f4fbe0473e5660ea18050790e9..a33c12a5f7a0828d0458250c6b67465daf1ce096 100644 (file)
@@ -56,7 +56,7 @@ class UserProfileCommentResponseLikeUserNotificationEvent extends AbstractUserNo
                                'authors' => $authors,
                                'commentUser' => $commentUser,
                                'count' => $count,
-                               'others' => max($count - 1, 0),
+                               'others' => $count - 1,
                                'owner' => $owner
                        ));
                }
index 1cac2542bc0ac62cb7dc5e7448417233539bfe20..6ba0b94a47cc17ece3a37d2d21793733e7e98a0d 100644 (file)
@@ -59,7 +59,7 @@ class UserProfileCommentResponseOwnerUserNotificationEvent extends AbstractUserN
                                'author' => $commentAuthor,
                                'authors' => $authors,
                                'count' => $count,
-                               'others' => max($count - 1, 0)
+                               'others' => $count - 1
                        ));
                }
                
index 224e647b8aa18b2937fbfd82f0c37f7b1038c005..c3f2c4b0e0715224ac2ae8d2887abcaa12aba962 100644 (file)
@@ -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
                        ));
                }
index 09eaef60dd845f571f11e77245e6a30facb6433b..5851a937ec9c32238cde56378d3325dac18ae512 100644 (file)
@@ -48,7 +48,7 @@ class UserProfileCommentUserNotificationEvent extends AbstractUserNotificationEv
                                'author' => $this->author,
                                'authors' => $authors,
                                'count' => $count,
-                               'others' => max($count - 1, 0)
+                               'others' => $count - 1
                        ));
                }