Disabling link to talk/discussion page

From Notes_Wiki
Revision as of 14:17, 13 November 2012 by Saurabh (talk | contribs) (Created page with "=Disabling link to talk/discussion page= To disable link to talk/discussion page for a wiki, enter following lines in '<tt>LocalSettings.php</tt>' file: <pre> $wgHooks['SkinT...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Disabling link to talk/discussion page

To disable link to talk/discussion page for a wiki, enter following lines in 'LocalSettings.php' file:

$wgHooks['SkinTemplateNavigation'][] = 'replaceTabs';
function replaceTabs( $skin, &$links) {  
        unset( $links['namespaces']['talk'] ); // Remove the talk action
        return true;
}