X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=skins%2FVector.php;h=3479ba58f7941a2f2ec503f82e0a74fcb031ecc7;hb=13632f8082ecae3d70c749d6093b2b4f691fdb5f;hp=2217de8dbc2400fa1237bc848f27a95fcdcf406b;hpb=2111b141c3c56eaf2e4d1e973dcd6e8743575971;p=lhc%2Fweb%2Fwiklou.git diff --git a/skins/Vector.php b/skins/Vector.php index 2217de8dbc..3479ba58f7 100644 --- a/skins/Vector.php +++ b/skins/Vector.php @@ -37,7 +37,7 @@ class SkinVector extends SkinTemplate { $out->addScript( '' + "/{$this->stylename}/csshover.htc\")}" ); } @@ -52,14 +52,14 @@ class SkinVector extends SkinTemplate { parent::setupSkinUserCss( $out ); // Append skin-specific styles - $out->addStyle( 'vector/main-rtl.css', 'screen', '', 'rtl' ); - $out->addStyle( 'vector/main-ltr.css', 'screen', '', 'ltr' ); + $out->addStyle( "{$this->stylename}/main-rtl.css", 'screen', '', 'rtl' ); + $out->addStyle( "{$this->stylename}/main-ltr.css", 'screen', '', 'ltr' ); // Add extra stylesheets // THIS IS ONLY USEFUL FOR EXPERIMENTING WITH DIFFERNT STYLE OPTIONS! THIS WILL BE REMOVED IN THE NEAR FUTURE. if ( is_array( $wgVectorExtraStyles ) ) { foreach ( $wgVectorExtraStyles as $style ) { - $out->addStyle( 'vector/' . $style, 'screen' ); + $out->addStyle( "vector/$style", 'screen' ); } } } @@ -103,7 +103,6 @@ class SkinVector extends SkinTemplate { } else { $talkId = "{$subjectId}_talk"; } - $currentId = $isTalk ? $talkId : $subjectId; // Adds namespace links $links['namespaces'][$subjectId] = $this->tabAction( @@ -293,7 +292,7 @@ class SkinVector extends SkinTemplate { // Checks if the user is logged in if ( $this->loggedin ) { if ( $wgVectorUseIconWatch ) { - $class = 'icon '; + $class = 'icon'; $place = 'views'; } else { $class = ''; @@ -367,7 +366,7 @@ class VectorTemplate extends QuickTemplate { * Outputs the entire contents of the XHTML page */ public function execute() { - global $wgRequest, $wgOut, $wgContLang; + global $wgRequest, $wgContLang; $this->skin = $this->data['skin']; $action = $wgRequest->getText( 'action' ); @@ -487,7 +486,7 @@ class VectorTemplate extends QuickTemplate {