]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
make sure UserFlagPlugin works without Profile_flag
authorEvan Prodromou <evan@status.net>
Sat, 7 Nov 2009 18:21:40 +0000 (13:21 -0500)
committerEvan Prodromou <evan@status.net>
Sat, 7 Nov 2009 18:21:40 +0000 (13:21 -0500)
plugins/UserFlag/UserFlagPlugin.php

index 06c1e75c589f361a7861f110c273b3934db2ca0c..c2716c2e11e3b5aaa675aa38dd054493ebadc431 100644 (file)
@@ -101,8 +101,7 @@ class UserFlagPlugin extends Plugin
 
             $action->elementStart('li', 'entity_flag');
 
-            if (User_flag_profile::exists($profile->id, $user->id,
-                                          Profile_flag::DEFAULTFLAG)) {
+            if (User_flag_profile::exists($profile->id, $user->id)) {
                 $action->element('span',
                                  _('Flagged for review'));
             } else {