From d25024f93fc0e42a1e03224204697f05c4bd1f29 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 4 Jun 2007 15:52:22 +0000 Subject: [PATCH] Fix calling convention to makeThumbLinkObj() --- includes/ImagePage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/ImagePage.php b/includes/ImagePage.php index f3109c5f03..8fff2988dc 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -274,7 +274,7 @@ class ImagePage extends Article { if ( $page > 1 ) { $label = $wgOut->parse( wfMsg( 'imgmultipageprev' ), false ); $link = $sk->makeKnownLinkObj( $this->mTitle, $label, 'page='. ($page-1) ); - $thumb1 = $sk->makeThumbLinkObj( $this->img, $link, $label, 'none', + $thumb1 = $sk->makeThumbLinkObj( $this->mTitle, $link, $label, 'none', array( 'page' => $page - 1 ) ); } else { $thumb1 = ''; @@ -283,7 +283,7 @@ class ImagePage extends Article { if ( $page < $count ) { $label = wfMsg( 'imgmultipagenext' ); $link = $sk->makeKnownLinkObj( $this->mTitle, $label, 'page='. ($page+1) ); - $thumb2 = $sk->makeThumbLinkObj( $this->img, $link, $label, 'none', + $thumb2 = $sk->makeThumbLinkObj( $this->mTitle, $link, $label, 'none', array( 'page' => $page + 1 ) ); } else { $thumb2 = ''; -- 2.20.1