Index: trunk/extensions/SkinPerNamespace/SkinPerNamespace.php |
— | — | @@ -47,8 +47,11 @@ |
48 | 48 | return true; |
49 | 49 | |
50 | 50 | $ns = $wgTitle->getNamespace(); |
51 | | - if( isset( $wgSkinPerNamespace[$ns] ) ) |
| 51 | + if( isset( $wgSkinPerNamespace[$ns] ) ) { |
52 | 52 | $skin = Skin::newFromKey( $wgSkinPerNamespace[$ns] ); |
| 53 | + if( is_callable( array( $skin, 'setTitle' ) ) ) # 1.15 + |
| 54 | + $skin->setTitle( $out->getTitle() ); |
| 55 | + } |
53 | 56 | |
54 | 57 | return true; |
55 | 58 | } |