From 253613a3358b62055cbb3fb9f7d8baac1ae0ce78 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Thu, 9 Feb 2012 10:36:12 +0000 Subject: [PATCH] (bug 34289) user.options CSS loaded twice. Caused by r107534. Made embedded private modules scripts-only, because the styles for user.options are included separately in buildCssLinks(), because they need to be applied without JavaScript and because they need to respect $wgAllowUserCssPrefs. No RELEASE-NOTES because I want to merge this into 1.19 as a regression fix --- includes/OutputPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index cc9118af52..c6d3680377 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -2682,7 +2682,7 @@ $templates // Load embeddable private modules before any loader links $embedScripts = array( 'user.options', 'user.tokens' ); - $scripts .= $this->makeResourceLoaderLink( $embedScripts, ResourceLoaderModule::TYPE_COMBINED ); + $scripts .= $this->makeResourceLoaderLink( $embedScripts, ResourceLoaderModule::TYPE_SCRIPTS ); // Script and Messages "only" requests marked for top inclusion // Messages should go first -- 2.20.1