Commit graph

17 commits

Author SHA1 Message Date
Trevor Parscal
623d11f435 Fixed fatal error - now $user is being checked to be sucessfully built before it's used. 2010-09-11 09:09:49 +00:00
Trevor Parscal
b9137a9cf2 Added direction to ResourceLoaderContext hashing (prevents cache mangling), dropped it from the startup module (it's not being passed on anyways - it's really just for debugging). Also enforced sorting of parameters in URLs to make them easier to read and less likely to miss cache unnessecarily. 2010-09-11 08:22:32 +00:00
Trevor Parscal
27fc041226 Moved a config back to Skin::makeGlobalVaiablesScript because it depends on the user object. 2010-09-11 08:06:38 +00:00
Trevor Parscal
ed054b1ace Fixed user scripts/styles and site scripts/styles - they were totally broken in r72772 - but now the refactoring is paying off. 2010-09-11 07:33:16 +00:00
Trevor Parscal
a99f9ec28b Major refactoring of site and user CSS, creating ResourceLoaderUserModule and ResourceLoaderUserPreferenceModule. Also moved as much of the global variables being generated in Skin::makeGlobalVaiablesScript into the ResourceLoaderStartupModule - which will make configuration changes effective site-wide in 5 minutes instead of whenever all pages are purged from cache - what remains embedded in the HTML is article and user specific - two things we don't know by the time we request the startup module. Also, fixed issue where debug=false was being interpreted to be equivilant to debug=true. Finally, finished integrating the introduction of $wgLoadScript, thus fixing overlooked issues in r72763. 2010-09-11 03:26:15 +00:00
Trevor Parscal
eeb5ce5150 Moved some of the logic for generating styles from wiki pages out of ResourceLoaderSiteModule and into ResourceLoaderWikiModule. 2010-09-10 23:28:59 +00:00
Trevor Parscal
7f523d754f Broke part of ResourceLoaderSiteModule into ResourceLoaderWikiModule (abstract parent). This paves the way for ResourceLoaderUserModule which will come next. 2010-09-10 21:40:42 +00:00
Trevor Parscal
000a3d25a2 Removed a comment, which should have been removed in r72743 2010-09-10 21:27:19 +00:00
Trevor Parscal
24ebfb40d8 Removed blank line in array definition. 2010-09-10 21:19:04 +00:00
Trevor Parscal
767a8725fa ResourceLoaderSiteModule now supports CSS too! 2010-09-10 20:18:24 +00:00
Trevor Parscal
931c7ff274 Fixes issue in r72695 where ResourceLoaderFileModule::getStyles was iterating twice over getPrimaryStyles rather than iterating over getPrimaryStyles and then getSkinsStyles. 2010-09-10 18:42:26 +00:00
Trevor Parscal
b3fea2070b Added media-type support for static and dynamic ResourceLoader requests. 2010-09-10 00:21:36 +00:00
Trevor Parscal
15fb95a931 Moved dependency of $wgUseDataURLs out of CSSMin and into ResourceLoaderModule. 2010-09-09 19:48:48 +00:00
Alexandre Emsenhuber
bb6ec5642a Fixed some doxygen warnings 2010-09-05 13:31:34 +00:00
Siebrand Mazeland
3f501420ee Stylize files added in r72349 2010-09-04 12:53:01 +00:00
Trevor Parscal
cad68eb943 Better solution for r72367, this allows file modules to always be written in ltr, while site modules are written in whatever $wgContLang is. 2010-09-04 10:53:57 +00:00
Roan Kattouw
32377424b9 Merging resourceloader branch into trunk. Full documentation is at http://www.mediawiki.org/wiki/ResourceLoader and a general overview has been posted on wikitech-li <http://lists.wikimedia.org/pipermail/wikitech-l/2010-September/049253.html>. One important change is that all JS is now loaded at the bottom, so any scripts assuming things from wikibits or whatever are present will fail. 2010-09-04 04:00:09 +00:00