mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CiteThisPage
synced 2024-11-23 23:24:09 +00:00
(bug 16182) Use SkinTemplateToolBoxEnd instead of MonoBookTemplateToolboxEnd in Cite. Renamed parameter for consistency.
This commit is contained in:
parent
08cf0d42f4
commit
029b4e6028
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue