Index: trunk/extensions/FlaggedRevs/specialpages/RatingHistory_body.php |
— | — | @@ -338,7 +338,7 @@ |
339 | 339 | * @returns bool, success |
340 | 340 | */ |
341 | 341 | public function makeSvgGraph( $tag, $filePath ) { |
342 | | - global $wgSvgGraphDir; |
| 342 | + global $wgSvgGraphDir, $wgContLang; |
343 | 343 | require_once( "$wgSvgGraphDir/svgGraph.php" ); // load classes |
344 | 344 | require_once( "$wgSvgGraphDir/svgGraph2.php" ); // load classes |
345 | 345 | // Define the object |
— | — | @@ -434,8 +434,9 @@ |
435 | 435 | $plot->format['rave'] = array( 'style' => 'stroke:green; stroke-width:1;' ); |
436 | 436 | $plot->format['dcount'] = array( 'style' => 'stroke:red; stroke-width:1;' ); |
437 | 437 | #'attributes' => "marker-end='url(#circle)'"); |
| 438 | + $pageText = $wgContLang->truncate( $this->page->getPrefixedText(), 80, '...' ); |
438 | 439 | $plot->title = wfMsgExt('ratinghistory-graph',array('parsemag','content'), |
439 | | - $totalCount, wfMsgForContent("readerfeedback-$tag"), $this->page->getPrefixedText() ); |
| 440 | + $totalCount, wfMsgForContent("readerfeedback-$tag"), $pageText ); |
440 | 441 | $plot->styleTitle = 'font-family: sans-serif; font-weight: bold; font-size: 11pt;'; |
441 | 442 | $plot->backgroundStyle = 'fill:#F0F0F0;'; |
442 | 443 | // extra code for markers |