Merge "OutputPage: Ensure setupSkinUserCss() always applies to headElement()"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 3 Sep 2016 18:54:57 +0000 (18:54 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 3 Sep 2016 18:54:57 +0000 (18:54 +0000)
includes/OutputPage.php

index 1083687..5aaa474 100644 (file)
@@ -2303,7 +2303,6 @@ class OutputPage extends ContextSource {
                        // Hook that allows last minute changes to the output page, e.g.
                        // adding of CSS or Javascript by extensions.
                        Hooks::run( 'BeforePageDisplay', [ &$this, &$sk ] );
-                       $this->getSkin()->setupSkinUserCss( $this );
 
                        try {
                                $sk->outputPage();
@@ -2675,6 +2674,7 @@ class OutputPage extends ContextSource {
                                'user.styles',
                                'user.cssprefs',
                        ] );
+                       $this->getSkin()->setupSkinUserCss( $this );
 
                        // Prepare exempt modules for buildExemptModules()
                        $exemptGroups = [ 'site' => [], 'noscript' => [], 'private' => [], 'user' => [] ];