r44649 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44648‎ | r44649 | r44650 >
Date:04:28, 16 December 2008
Author:aaron
Status:ok
Tags:
Comment:
Limit graph title
Modified paths:
  • /trunk/extensions/FlaggedRevs/specialpages/RatingHistory_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/specialpages/RatingHistory_body.php
@@ -338,7 +338,7 @@
339339 * @returns bool, success
340340 */
341341 public function makeSvgGraph( $tag, $filePath ) {
342 - global $wgSvgGraphDir;
 342+ global $wgSvgGraphDir, $wgContLang;
343343 require_once( "$wgSvgGraphDir/svgGraph.php" ); // load classes
344344 require_once( "$wgSvgGraphDir/svgGraph2.php" ); // load classes
345345 // Define the object
@@ -434,8 +434,9 @@
435435 $plot->format['rave'] = array( 'style' => 'stroke:green; stroke-width:1;' );
436436 $plot->format['dcount'] = array( 'style' => 'stroke:red; stroke-width:1;' );
437437 #'attributes' => "marker-end='url(#circle)'");
 438+ $pageText = $wgContLang->truncate( $this->page->getPrefixedText(), 80, '...' );
438439 $plot->title = wfMsgExt('ratinghistory-graph',array('parsemag','content'),
439 - $totalCount, wfMsgForContent("readerfeedback-$tag"), $this->page->getPrefixedText() );
 440+ $totalCount, wfMsgForContent("readerfeedback-$tag"), $pageText );
440441 $plot->styleTitle = 'font-family: sans-serif; font-weight: bold; font-size: 11pt;';
441442 $plot->backgroundStyle = 'fill:#F0F0F0;';
442443 // extra code for markers

Status & tagging log