diff options
author | Evan Prodromou <evan@status.net> | 2009-11-08 21:23:09 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-11-08 21:23:09 -0500 |
commit | 76b0e6e6f4151235d5032d1aa90f0937b415bd87 (patch) | |
tree | 47ef20a3cd3d6ef9ace200be56af16d9b3e02965 /plugins | |
parent | 7ee9737ef67fded89fb51602b06c8f77fba97bb1 (diff) | |
parent | f086dddf43a8e1593a615e77c2fdd605623acf49 (diff) |
Merge branch '0.9.x' into adminpanel
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; + } } |