+
+ /**
+ * Load skin and user CSS files in the correct order
+ * fixes bug 22916
+ * @param $out OutputPage object
+ */
+ function setupSkinUserCss( OutputPage $out ){
+ global $wgVectorExtraStyles;
+
+ parent::setupSkinUserCss( $out );
+
+ // Append skin-specific styles
+ $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' );
+ }
+ }
+ }
+