+ }
+
+ /**
+ * 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' );
+