[dw-free] Timeformat setting showed to communities, where it doesn't actually make sense.
[commit: http://hg.dwscoalition.org/dw-free/rev/1c197e46030f]
http://bugs.dwscoalition.org/show_bug.cgi?id=3312
Only show the timeformat setting to individuals (personal and openid
journals)
Patch by
ninetydegrees.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=3312
Only show the timeformat setting to individuals (personal and openid
journals)
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- cgi-bin/DW/Setting/TimeFormat.pm
-------------------------------------------------------------------------------- diff -r f66a7392e0f4 -r 1c197e46030f cgi-bin/DW/Setting/TimeFormat.pm --- a/cgi-bin/DW/Setting/TimeFormat.pm Tue Nov 30 22:23:52 2010 +0800 +++ b/cgi-bin/DW/Setting/TimeFormat.pm Tue Nov 30 22:31:09 2010 +0800 @@ -21,11 +21,12 @@ use warnings; use warnings; sub should_render { - $_[1] ? 1 : 0; + my ( $class, $u ) = @_; + return $u && $u->is_individual; } sub label { - $_[0]->ml( 'setting.timeformat.label' ); + return $_[0]->ml( 'setting.timeformat.label' ); } sub option { --------------------------------------------------------------------------------