From 029b4e602818edd24bc4750eec49c434f39d4e6e Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Thu, 30 Oct 2008 16:12:17 +0000 Subject: [PATCH] (bug 16182) Use SkinTemplateToolBoxEnd instead of MonoBookTemplateToolboxEnd in Cite. Renamed parameter for consistency. --- SpecialCite.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/SpecialCite.php b/SpecialCite.php index 7cdd5a47..0e09c876 100644 --- a/SpecialCite.php +++ b/SpecialCite.php @@ -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'] == '' ) { - ?>
  • msg( 'cite_article_link' ); ?>
  • data['nav_urls']['cite'] ) ) + if ( $skin->data['nav_urls']['cite']['href'] == '' ) { + ?>
  • msg( 'cite_article_link' ); ?>
  • msg( 'cite_article_link' ); + ?>msg( 'cite_article_link' ); ?>