From: Sam Reed Date: Fri, 1 Jul 2011 01:37:15 +0000 (+0000) Subject: Remove unused parameter, update callers X-Git-Tag: 1.31.0-rc.0~29132 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=afc77d6bb7847b988e6b0e828fef5c331de9bb43;p=lhc%2Fweb%2Fwiklou.git Remove unused parameter, update callers Trim whitespace --- diff --git a/skins/Modern.php b/skins/Modern.php index 9b85064f3b..d0646c6a7e 100644 --- a/skins/Modern.php +++ b/skins/Modern.php @@ -63,7 +63,7 @@ class ModernTemplate extends MonoBookTemplate {
-cactions( $skin ); ?> +cactions(); ?>
diff --git a/skins/MonoBook.php b/skins/MonoBook.php index be6f495d54..76a21ef244 100644 --- a/skins/MonoBook.php +++ b/skins/MonoBook.php @@ -31,13 +31,13 @@ class SkinMonoBook extends SkinTemplate { parent::setupSkinUserCss( $out ); $out->addModuleStyles( 'skins.monobook' ); - + // Ugh. Can't do this properly because $wgHandheldStyle may be a URL if( $wgHandheldStyle ) { // Currently in testing... try 'chick/main.css' $out->addStyle( $wgHandheldStyle, 'handheld' ); } - + // TODO: Migrate all of these //$out->addStyle( 'monobook/IE50Fixes.css', 'screen', 'lt IE 5.5000' ); //$out->addStyle( 'monobook/IE55Fixes.css', 'screen', 'IE 5.5000' ); @@ -103,7 +103,7 @@ class MonoBookTemplate extends BaseTemplate {
html('userlangattributes') ?>> -cactions( $this->skin ); ?> +cactions(); ?>
msg('personaltools') ?>
@@ -225,7 +225,7 @@ echo $footerEnd; * * @param $skin Skin */ - function cactions( Skin $skin ) { + function cactions() { ?>
msg('views') ?>
@@ -233,7 +233,7 @@ echo $footerEnd;
    data['content_actions'] as $key => $tab) { $linkAttribs = array( 'href' => $tab['href'] ); - + if( isset( $tab["tooltiponly"] ) && $tab["tooltiponly"] ) { $title = Linker::titleAttrib( "ca-$key" ); if ( $title !== false ) { @@ -243,7 +243,7 @@ echo $footerEnd; $linkAttribs += Linker::tooltipAndAccesskeyAttribs( "ca-$key" ); } $linkHtml = Html::element( 'a', $linkAttribs, $tab['text'] ); - + /* Surround with a
  • */ $liAttribs = array( 'id' => Sanitizer::escapeId( "ca-$key" ) ); if( $tab['class'] ) { diff --git a/skins/Vector.php b/skins/Vector.php index 8f25d9966a..c4def5428b 100644 --- a/skins/Vector.php +++ b/skins/Vector.php @@ -29,7 +29,7 @@ class SkinVector extends SkinTemplate { global $wgLocalStylePath, $wgRequest; parent::initPage( $out ); - + // Append CSS which includes IE only behavior fixes for hover support - // this is better than including this in a CSS fille since it doesn't // wait for the CSS file to load before fetching the HTC file. @@ -39,7 +39,7 @@ class SkinVector extends SkinTemplate { htmlspecialchars( $wgLocalStylePath ) . "/{$this->stylename}/csshover{$min}.htc\")}" ); - + $out->addModuleScripts( 'skins.vector' ); } @@ -80,7 +80,7 @@ class VectorTemplate extends BaseTemplate { // Build additional attributes for navigation urls //$nav = $this->skin->buildNavigationUrls(); $nav = $this->data['content_navigation']; - + if ( $wgVectorUseIconWatch ) { $mode = $this->skin->getTitle()->userIsWatching() ? 'unwatch' : 'watch'; if ( isset( $nav['actions'][$mode] ) ) { @@ -97,7 +97,7 @@ class VectorTemplate extends BaseTemplate { if ( $section == 'views' && !( isset( $link['primary'] ) && $link['primary'] ) ) { $link['class'] = rtrim( 'collapsible ' . $link['class'], ' ' ); } - + $xmlID = isset( $link['id'] ) ? $link['id'] : 'ca-' . $xmlID; $nav[$section][$key]['attributes'] = ' id="' . Sanitizer::escapeId( $xmlID ) . '"'; @@ -259,7 +259,7 @@ class VectorTemplate extends BaseTemplate { /** * Render a series of portals * - * @params $portals array + * @param $portals array */ private function renderPortals( $portals ) { // Force the rendering of the following portals