Index: trunk/extensions/LiquidThreads/pages/TalkpageView.php |
— | — | @@ -343,7 +343,11 @@ |
344 | 344 | |
345 | 345 | // Workaround for bug 25077 |
346 | 346 | global $wgOut, $wgUser; |
347 | | - $wgUser->getSkin()->setTitle( $wgOut->getTitle() ); |
| 347 | + $sk = $wgUser->getSkin(); |
| 348 | + if ( method_exists( $sk, 'setTitle' ) ) { |
| 349 | + # Skin::setTitle was removed in 1.18, it already shares the same source of title with $wgOut. |
| 350 | + $sk->setTitle( $wgOut->getTitle() ); |
| 351 | + } |
348 | 352 | |
349 | 353 | return false; |
350 | 354 | } |