From: Tim Starling Date: Fri, 4 May 2007 14:27:52 +0000 (+0000) Subject: Use makeKnownLinkObj() instead of makeLinkObj() for multipage prev/next links. Image... X-Git-Tag: 1.31.0-rc.0~53091 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=ac14a8a6b7d169ae0a171983ea0ff20975846da4;p=lhc%2Fweb%2Fwiklou.git Use makeKnownLinkObj() instead of makeLinkObj() for multipage prev/next links. Image pages do not need to exist to work. --- 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 {