Index: trunk/extensions/SemanticMediaWiki/includes/SMW_RefreshTab.php |
— | — | @@ -25,10 +25,12 @@ |
26 | 26 | global $wgUser; |
27 | 27 | if ( $wgUser->isAllowed( 'purge' ) ) { |
28 | 28 | smwfLoadExtensionMessages( 'SemanticMediaWiki' ); |
| 29 | + // Skin::getTitle() was added in MW 1.16 |
| 30 | + $title = is_callable( array( $skin, 'getTitle' ) ) ? $skin->getTitle() : $skin->mTitle; |
29 | 31 | $content_actions['purge'] = array( |
30 | 32 | 'class' => false, |
31 | 33 | 'text' => wfMsg( 'smw_purge' ), |
32 | | - 'href' => $skin->getTitle()->getLocalUrl( 'action=purge' ) |
| 34 | + 'href' => $title->getLocalUrl( 'action=purge' ) |
33 | 35 | ); |
34 | 36 | } |
35 | 37 | return true; // always return true, in order not to stop MW's hook processing! |
— | — | @@ -43,4 +45,4 @@ |
44 | 46 | smwfAddRefreshTab( $skin, $actions ); |
45 | 47 | $links['actions'] = $actions; |
46 | 48 | return true; |
47 | | -} |
\ No newline at end of file |
| 49 | +} |