Index: trunk/extensions/ProofreadPage/ProofreadPage_body.php |
— | — | @@ -388,10 +388,15 @@ |
389 | 389 | } |
390 | 390 | $thumbURL = $image->getThumbUrl( $thumbName ); |
391 | 391 | $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' ) ); |
392 | 396 | } else { |
393 | 397 | $width = 0; |
394 | 398 | $height = 0; |
395 | 399 | $thumbURL = ''; |
| 400 | + $scan_link = ''; |
396 | 401 | } |
397 | 402 | |
398 | 403 | list( $index_title, $prev_title, $next_title, $header, $footer, $css, $edit_width ) = $this->navigation( $wgTitle ); |
— | — | @@ -403,8 +408,6 @@ |
404 | 409 | array( 'title' => wfMsg( 'proofreadpage_prevpage' ) ) ): ''; |
405 | 410 | $index_link = $index_title ? $sk->link( $index_title, $this->up_icon, |
406 | 411 | array( 'title' => wfMsg( 'proofreadpage_index' ) ) ) : ''; |
407 | | - $scan_link = $sk->link( $imageTitle, wfMsg( 'proofreadpage_image' ), |
408 | | - array( 'title' => wfMsg( 'proofreadpage_image' ) ) ); |
409 | 412 | |
410 | 413 | $jsVars = array( |
411 | 414 | 'proofreadPageWidth' => intval( $width ), |