HT 0.9 + htEditTabLink = false results in the edit link still be present

Jump to: navigation, search

We updated to HT 0.9 and tried to use $htEditTabLink = false; but somehow the [edit] link still appears within the HT. We tested HT on MW 1.17 and 1.18 and experienced the same behaviour.

MWJames00:11, 17 December 2011

I'm sure it'll be fixed soon, but you can get your version working by adding an if-test in HeaderTabs_body.jq.php. Around line 21, add

$htEditTabLink

to the global declaration list, and around line 224, Change

    
    //! @todo handle __NOEDITTAB__ here (2011-12-12, ofb)
    $tabhtml .= '<span class="editsection" id="edittab">    [<a href="" title="'.wfMsg('headertabs-edittab-hint').'">'.wfMsg('headertabs    -edittab').'</a>]</span>';

to

    //! @todo handle __NOEDITTAB__ here (2011-12-12, ofb)
    if ( $htEditTabLink ) {
        $tabhtml .= '<span class="editsection" id="edittab">    [<a href="" title="'.wfMsg('headertabs-edittab-hint').'">'.wfMsg('headertabs    -edittab').'</a>]</span>';
    }
Salquint16:51, 22 December 2011

Excellent, it works! Thx.

Teststudent03:48, 23 December 2011

Thanks people, committed it to Special:Code/MediaWiki/107284

Notice that the patch above is missing adding the variable to the 'global' line. The above patch turns it always-off. If someone can verify that the SVN HEAD version works on their setup, then Yaron maybe we could do a 0.9.1 release?

Olivier Beaton20:05, 25 December 2011
Edited by another user.
Last edit: 22:39, 10 January 2012

Confirmed. Added code from r107284, no edit tab links.

MW 1.18

Teststudent20:50, 10 January 2012
 
 
 
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox