Only show the timeformat setting to individuals (personal and openid 
journals)

        Patch by ninetydegrees. 

diffs (18 lines):

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 {
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to