Revert r91973 " Bug 24254: Output JS var wgCategories on other actions than view...
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 12 Jul 2011 17:21:15 +0000 (17:21 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 12 Jul 2011 17:21:15 +0000 (17:21 +0000)
commita2ed8062cc994f121f0237da992e61d3af3a8ee1
tree301b61ff1e2cf746f69567e741ebc22a9237c4d7
parent023dd383b9acbd8e74e2f7e2b9f3e8cfd1478563
Revert r91973 " Bug 24254: Output JS var wgCategories on other actions than view as well"

This code just looks really wrong -- it seems to be stuffing things into OutputPage::getCategories() which seems clearly designed to only return a set of categories that have been previously set by something else; rather than a lazy loader it also seems to fetch them every time. Nor does it even check if the article exists before loading from the DB -- and in general it looks like it doesn't really fit in with other code. It also only lists itself as altering wgCategories, but it's changing what's in the OutputPage itself so this may affect other things.
includes/OutputPage.php