r74018 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74017‎ | r74018 | r74019 >
Date:11:37, 30 September 2010
Author:thomasv
Status:ok
Tags:
Comment:
link to the scan
Modified paths:
  • /trunk/extensions/ProofreadPage/ProofreadPage_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/ProofreadPage_body.php
@@ -388,10 +388,15 @@
389389 }
390390 $thumbURL = $image->getThumbUrl( $thumbName );
391391 $thumbURL = str_replace( '%23', '#', $thumbURL );
 392+ $scan_link = Html::element( 'a',
 393+ array( 'href' => str_replace( '##WIDTH##', "$width", $thumbURL ),
 394+ 'title' => wfMsg( 'proofreadpage_image' ) ),
 395+ wfMsg( 'proofreadpage_image' ) );
392396 } else {
393397 $width = 0;
394398 $height = 0;
395399 $thumbURL = '';
 400+ $scan_link = '';
396401 }
397402
398403 list( $index_title, $prev_title, $next_title, $header, $footer, $css, $edit_width ) = $this->navigation( $wgTitle );
@@ -403,8 +408,6 @@
404409 array( 'title' => wfMsg( 'proofreadpage_prevpage' ) ) ): '';
405410 $index_link = $index_title ? $sk->link( $index_title, $this->up_icon,
406411 array( 'title' => wfMsg( 'proofreadpage_index' ) ) ) : '';
407 - $scan_link = $sk->link( $imageTitle, wfMsg( 'proofreadpage_image' ),
408 - array( 'title' => wfMsg( 'proofreadpage_image' ) ) );
409412
410413 $jsVars = array(
411414 'proofreadPageWidth' => intval( $width ),

Status & tagging log