Ticket #468: patch
File patch, 899 bytes (added by jcdubacq, 17 years ago) |
---|
-
/tmp/
old new 60 60 } 61 61 } 62 62 63 if (isset($attr['has_comments'])) { 64 if ((boolean) $attr['has_comments']) { 65 $if[] = '($_ctx->posts->hasComments())'; 66 } else { 67 $if[] = '(!$_ctx->posts->hasComments())'; 68 } 69 } 70 63 71 if (isset($attr['show_pings'])) { 64 72 if ((boolean) $attr['show_pings']) { 65 73 $if[] = '($_ctx->posts->hasTrackbacks() || $_ctx->posts->trackbacksActive())'; … … 68 76 } 69 77 } 70 78 79 if (isset($attr['has_pings'])) { 80 if ((boolean) $attr['has_pings']) { 81 $if[] = '($_ctx->posts->hasTrackbacks())'; 82 } else { 83 $if[] = '(!$_ctx->posts->hasTrackbacks())'; 84 } 85 } 86 71 87 if (!empty($if)) { 72 88 return '<?php if('.implode(' '.$operator.' ',$if).') : ?>'.$content.'<?php endif; ?>'; 73 89 } else {