diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/OpenID/OpenIDPlugin.php | 6 | ||||
-rw-r--r-- | plugins/UserFlag/UserFlagPlugin.php | 13 |
2 files changed, 18 insertions, 1 deletions
diff --git a/plugins/OpenID/OpenIDPlugin.php b/plugins/OpenID/OpenIDPlugin.php index 2309eea9d..e4aed2ddb 100644 --- a/plugins/OpenID/OpenIDPlugin.php +++ b/plugins/OpenID/OpenIDPlugin.php @@ -298,4 +298,10 @@ class OpenIDPlugin extends Plugin new ColumnDef('modified', 'timestamp'))); return true; } + + function onUserDeleteRelated($user, &$tables) + { + $tables[] = 'User_openid'; + return true; + } } diff --git a/plugins/UserFlag/UserFlagPlugin.php b/plugins/UserFlag/UserFlagPlugin.php index fbe5fd351..2376bb859 100644 --- a/plugins/UserFlag/UserFlagPlugin.php +++ b/plugins/UserFlag/UserFlagPlugin.php @@ -102,7 +102,7 @@ class UserFlagPlugin extends Plugin $action->elementStart('li', 'entity_flag'); if (User_flag_profile::exists($profile->id, $user->id)) { - $action->element('span', array(), + $action->element('p', array(), _('Flagged for review')); } else { $form = new FlagProfileForm($action, $profile, @@ -130,4 +130,15 @@ class UserFlagPlugin extends Plugin return true; } + + function onEndShowStatusNetStyles($action) + { + $action->elementStart('style', array('type' => 'text/css')); + $action->raw('.entity_flag input, .entity_flag p {'. + ' background:url('.common_path('plugins/UserFlag/flag.gif').') 5px 5px no-repeat;'. + ' }'); + $action->elementEnd('style'); + + return true; + } } |