dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8091028
)
Add hack to shut up fatals when getCategories() is called without an actual OutputPage
author
Chad Horohoe
<demon@users.mediawiki.org>
Wed, 4 May 2011 01:43:03 +0000
(
01:43
+0000)
committer
Chad Horohoe
<demon@users.mediawiki.org>
Wed, 4 May 2011 01:43:03 +0000
(
01:43
+0000)
includes/Skin.php
patch
|
blob
|
history
diff --git
a/includes/Skin.php
b/includes/Skin.php
index
9490310
..
747401b
100644
(file)
--- a/
includes/Skin.php
+++ b/
includes/Skin.php
@@
-607,6
+607,10
@@
abstract class Skin {
* the ->getCategories( $out ) form with whatout OutputPage is on hand
*/
function getCategories( OutputPage $out=null ) {
+ if( !$out ) {
+ global $wgOut;
+ $out = $wgOut;
+ }
$catlinks = $this->getCategoryLinks( $out );