Index: trunk/extensions/Translate/SpecialTranslationStats.php |
— | — | @@ -73,7 +73,9 @@ |
74 | 74 | if ( $lastMod ) return; |
75 | 75 | } |
76 | 76 | |
77 | | - $wgOut->disable(); |
| 77 | + if ( !$wgRequest->getBool( 'debug' ) ) { |
| 78 | + $wgOut->disable(); |
| 79 | + } |
78 | 80 | |
79 | 81 | if ( !class_exists( 'PHPlot' ) ) { |
80 | 82 | header( "HTTP/1.0 500 Multi fail" ); |
— | — | @@ -632,8 +634,8 @@ |
633 | 635 | protected function formatTimestamp( $timestamp ) { |
634 | 636 | global $wgContLang; |
635 | 637 | switch ( $this->opts['scale'] ) { |
636 | | - case 'hours' : $cut = 2; break; |
637 | | - case 'days' : $cut = 4; break; |
| 638 | + case 'hours' : $cut = 4; break; |
| 639 | + case 'days' : $cut = 6; break; |
638 | 640 | case 'months': $cut = 8; break; |
639 | 641 | default : return $wgContLang->sprintfDate( $this->getDateFormat(), $timestamp ); |
640 | 642 | } |