r87380 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r87379
|
r87380
|
r87381
>
Date:
01:43, 4 May 2011
Author:
demon
Status:
ok (
Comments
)
Tags:
Comment:
Add hack to shut up fatals when getCategories() is called without an actual OutputPage
Modified paths:
/trunk/phase3/includes/Skin.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/Skin.php
—
—
@@ -607,6 +607,10 @@
608
608
* the ->getCategories( $out ) form with whatout OutputPage is on hand
609
609
*/
610
610
function getCategories( OutputPage $out=null ) {
611
+ if( !$out ) {
612
+ global $wgOut;
613
+ $out = $wgOut;
614
+ }
611
615
612
616
$catlinks = $this->getCategoryLinks( $out );
613
617
Follow-up revisions
Revision
Commit summary
Author
Date
r87382
Add proper $out setting to Skin::getCategories which is present in the other ...
dantman
01:53, 4 May 2011
Comments
#
Comment by
Brion VIBBER
(
talk
|
contribs
)
18:40, 7 June 2011
Further cleaned up in
r87389
Status & tagging log
18:40, 7 June 2011
Brion VIBBER
(
talk
|
contribs
)
changed the
status
of r87380
[
removed:
new
added:
ok]