(bug 16182) Use SkinTemplateToolBoxEnd instead of MonoBookTemplateToolboxEnd in Cite. Renamed parameter for consistency.

This commit is contained in:
Siebrand Mazeland 2008-10-30 16:12:17 +00:00
parent 08cf0d42f4
commit 029b4e6028

View file

@ -29,7 +29,7 @@ $wgExtensionMessagesFiles['SpecialCite'] = $dir . 'SpecialCite.i18n.php';
$wgExtensionAliasesFiles['SpecialCite'] = $dir . 'SpecialCite.i18n.alias.php';
$wgHooks['SkinTemplateBuildNavUrlsNav_urlsAfterPermalink'][] = 'wfSpecialCiteNav';
$wgHooks['MonoBookTemplateToolboxEnd'][] = 'wfSpecialCiteToolbox';
$wgHooks['SkinTemplateToolboxEnd'][] = 'wfSpecialCiteToolbox';
$wgSpecialPages['Cite'] = 'SpecialCite';
$wgAutoloadClasses['SpecialCite'] = $dir . 'SpecialCite_body.php';
@ -45,15 +45,15 @@ function wfSpecialCiteNav( &$skintemplate, &$nav_urls, &$oldid, &$revid ) {
return true;
}
function wfSpecialCiteToolbox( &$monobook ) {
function wfSpecialCiteToolbox( &$skin ) {
wfLoadExtensionMessages( 'SpecialCite' );
if ( isset( $monobook->data['nav_urls']['cite'] ) )
if ( $monobook->data['nav_urls']['cite']['href'] == '' ) {
?><li id="t-iscite"><?php echo $monobook->msg( 'cite_article_link' ); ?></li><?php
if ( isset( $skin->data['nav_urls']['cite'] ) )
if ( $skin->data['nav_urls']['cite']['href'] == '' ) {
?><li id="t-iscite"><?php echo $skin->msg( 'cite_article_link' ); ?></li><?php
} else {
?><li id="t-cite"><?php
?><a href="<?php echo htmlspecialchars( $monobook->data['nav_urls']['cite']['href'] ) ?>"><?php
echo $monobook->msg( 'cite_article_link' );
?><a href="<?php echo htmlspecialchars( $skin->data['nav_urls']['cite']['href'] ) ?>"><?php
echo $skin->msg( 'cite_article_link' );
?></a><?php
?></li><?php
}