Use makeKnownLinkObj() instead of makeLinkObj() for multipage prev/next links. Image...
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 4 May 2007 14:27:52 +0000 (14:27 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 4 May 2007 14:27:52 +0000 (14:27 +0000)
includes/ImagePage.php

index e593082..a7ee45c 100644 (file)
@@ -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 {