diff options
author | Yorhel <git@yorhel.nl> | 2010-12-23 12:05:57 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2010-12-23 12:05:57 +0100 |
commit | 951568c87b1a1ad6fcb73928608f76b3470fd817 (patch) | |
tree | 9c01cc5a5fd66c894ab76ae7f005668d3f1c256e /lib/VNDB/DB | |
parent | e0131b6ab501eaeda1003ac5131f803a36192d46 (diff) |
Converted the show_nsfw preference to use the users_prefs table
Diffstat (limited to 'lib/VNDB/DB')
-rw-r--r-- | lib/VNDB/DB/Users.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VNDB/DB/Users.pm b/lib/VNDB/DB/Users.pm index 73479784..86249f44 100644 --- a/lib/VNDB/DB/Users.pm +++ b/lib/VNDB/DB/Users.pm @@ -54,7 +54,7 @@ sub dbUserGet { qw|id username c_votes c_changes show_list c_tags|, q|extract('epoch' from registered) as registered|, $o{what} =~ /extended/ ? ( - qw|mail rank salt show_nsfw ign_votes notify_dbedit notify_announce|, + qw|mail rank salt ign_votes notify_dbedit notify_announce|, q|encode(passwd, 'hex') AS passwd| ) : (), $o{what} =~ /notifycount/ ? @@ -114,7 +114,7 @@ sub dbUserEdit { my %h; defined $o{$_} && ($h{$_.' = ?'} = $o{$_}) - for (qw| username mail rank show_nsfw show_list salt ign_votes notify_dbedit notify_announce |); + for (qw| username mail rank show_list salt ign_votes notify_dbedit notify_announce |); $h{'passwd = decode(?, \'hex\')'} = $o{passwd} if defined $o{passwd}; |