Last modified: 2014-09-23 22:59:45 UTC
Created attachment 8741 [details] fix For some reason, on my wiki there were four, exactly identical CSS declarations like <link rel="stylesheet" href="/load.php?debug=false&lang=it&modules=site&only=styles&skin=vector&*" />. The cause of this, I was told on #mediawiki, is probably that I'm using root URLs (example.com/Page). However, I was able to fix this issue by adding an array_unique function (see attached patch).
That patch looks a bit off -- it just collapses an array of four empty arrays into an array of one empty array when it's initialized, right? What's the actual problem causing this?
The person on #mediawiki was me. I didn't mean to give the impression that the cause of this was using rewrite urls from root. You also mentioned a different issue (404 error on a .png image from /skins/foobar which MediaWiki interpreted as an article "Skins/foobar".) The root URL is unlikely to be related to the duplicate embedding of stylesheets.
If the patch said something like array_map( 'array_unique', .... ) , I'd see why you might be doing that. But still it'd be nice to know where these duplicates come from.
pioneeroverc@yahoo.it, Thanks for your patch and for contributing to MediaWiki. I am adding the "reviewed" keyword because there are comments here (from Roan, Krinkle, and Brion) on your patch. Do you have the time and interest to respond, clarify the issue you're fixing, and write a new patch?