Restore load position override for 'site.styles' module
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 24 Jun 2016 13:51:27 +0000 (15:51 +0200)
committerOri.livneh <ori@wikimedia.org>
Fri, 24 Jun 2016 21:43:11 +0000 (21:43 +0000)
Follows-up 93ed259 which changed the module to be 'site.styles', but
the override was still looking for a module called 'site' (which isn't
listed in that queue anymore).

Bug: T138586
Change-Id: I3052a2e378f804d0d4d117f8ed446fe9b4b59f99

includes/OutputPage.php

index 53c70d8..5c7203d 100644 (file)
@@ -3694,7 +3694,7 @@ class OutputPage extends ContextSource {
                        if ( !$module ) {
                                continue;
                        }
-                       if ( $name === 'site' ) {
+                       if ( $name === 'site.styles' ) {
                                // HACK: The site module shouldn't be fragmented with a cache group and
                                // http request. But in order to ensure its styles are separated and after the
                                // ResourceLoaderDynamicStyles marker, pretend it is in a group called 'site'.