diff options
author | Evan Prodromou <evan@status.net> | 2009-11-07 13:39:26 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-11-07 13:39:26 -0500 |
commit | 0668520a8df15c52b26b6d4ca6abb1a714aecd17 (patch) | |
tree | 1a8c6401cad6610649c8ede63ee207fc56c5eeaa | |
parent | 509109a71a7aebd028dffb053a888cc48826b6b9 (diff) |
fixup database interface and correct the flagged notice
-rw-r--r-- | plugins/UserFlag/UserFlagPlugin.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/UserFlag/UserFlagPlugin.php b/plugins/UserFlag/UserFlagPlugin.php index c2716c2e1..fbe5fd351 100644 --- a/plugins/UserFlag/UserFlagPlugin.php +++ b/plugins/UserFlag/UserFlagPlugin.php @@ -51,13 +51,13 @@ class UserFlagPlugin extends Plugin $schema->ensureTable('user_flag_profile', array(new ColumnDef('profile_id', 'integer', null, - null, 'PRI'), + false, 'PRI'), new ColumnDef('user_id', 'integer', null, - null, 'PRI'), + false, 'PRI'), new ColumnDef('created', 'datetime', null, - null, 'MUL'), + false, 'MUL'), new ColumnDef('cleared', 'datetime', null, - null, 'MUL'))); + true, 'MUL'))); return true; } @@ -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', + $action->element('span', array(), _('Flagged for review')); } else { $form = new FlagProfileForm($action, $profile, |