Index: trunk/extensions/Cite/SpecialCite.php |
— | — | @@ -40,11 +40,11 @@ |
41 | 41 | } |
42 | 42 | } |
43 | 43 | |
44 | | -function wfSpecialCiteNav( &$skintemplate, &$nav_urls, &$oldid, &$revid ) { |
| 44 | +function wfSpecialCiteNav( &$skintemplate, &$nav_urls, $oldid, $revid ) { |
45 | 45 | if ( $skintemplate->mTitle->getNamespace() === NS_MAIN && $revid !== 0 ) |
46 | 46 | $nav_urls['cite'] = array( |
47 | 47 | 'text' => wfMsg( 'cite_article_link' ), |
48 | | - 'href' => $skintemplate->makeSpecialUrl( 'Cite', "page=" . wfUrlencode( "{$skintemplate->thispage}" ) . "&id=$oldid" ) |
| 48 | + 'href' => $skintemplate->makeSpecialUrl( 'Cite', "page=" . wfUrlencode( "{$skintemplate->thispage}" ) . "&id=" . intval( $oldid ) ) |
49 | 49 | ); |
50 | 50 | |
51 | 51 | return true; |