diff options
author | Yorhel <git@yorhel.nl> | 2010-01-24 15:04:02 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2010-01-24 15:07:00 +0100 |
commit | d7815efc3a99aecc61c5ac1d9833de0f448b697f (patch) | |
tree | 50e8082f67f360eff12c434723784d9069df4109 /lib/VNDB/DB/Users.pm | |
parent | b04c46baec8aef93d21898ef7f52b9d6d2442ce3 (diff) |
Automatically generate the skin credits on d7
Added a userid field in the skin config files, from which the credits
are loaded. Now I don't have to constantly update d7 for every language
when something changes in the skin files.
Diffstat (limited to 'lib/VNDB/DB/Users.pm')
-rw-r--r-- | lib/VNDB/DB/Users.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/VNDB/DB/Users.pm b/lib/VNDB/DB/Users.pm index f8fdfe3f..36f589ac 100644 --- a/lib/VNDB/DB/Users.pm +++ b/lib/VNDB/DB/Users.pm @@ -30,8 +30,10 @@ sub dbUserGet { 'ASCII(username) < 97 OR ASCII(username) > 122' => 1 ) : (), $o{mail} ? ( 'mail = ?' => $o{mail} ) : (), - $o{uid} ? ( + $o{uid} && !ref($o{uid}) ? ( 'id = ?' => $o{uid} ) : (), + $o{uid} && ref($o{uid}) ? ( + 'id IN(!l)' => [ $o{uid} ]) : (), !$o{uid} && !$o{username} ? ( 'id > 0' => 1 ) : (), $o{ip} ? ( |