From ac14a8a6b7d169ae0a171983ea0ff20975846da4 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 4 May 2007 14:27:52 +0000 Subject: [PATCH] Use makeKnownLinkObj() instead of makeLinkObj() for multipage prev/next links. Image pages do not need to exist to work. --- includes/ImagePage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/ImagePage.php b/includes/ImagePage.php index e593082ecc..a7ee45c303 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -265,7 +265,7 @@ class ImagePage extends Article { if ( $page > 1 ) { $label = $wgOut->parse( wfMsg( 'imgmultipageprev' ), false ); - $link = $sk->makeLinkObj( $this->mTitle, $label, 'page='. ($page-1) ); + $link = $sk->makeKnownLinkObj( $this->mTitle, $label, 'page='. ($page-1) ); $thumb1 = $sk->makeThumbLinkObj( $this->img, $link, $label, 'none', array( 'page' => $page - 1 ) ); } else { @@ -274,7 +274,7 @@ class ImagePage extends Article { if ( $page < $count ) { $label = wfMsg( 'imgmultipagenext' ); - $link = $sk->makeLinkObj( $this->mTitle, $label, 'page='. ($page+1) ); + $link = $sk->makeKnownLinkObj( $this->mTitle, $label, 'page='. ($page+1) ); $thumb2 = $sk->makeThumbLinkObj( $this->img, $link, $label, 'none', array( 'page' => $page + 1 ) ); } else { -- 2.20.1