https://bugzilla.wikimedia.org/show_bug.cgi?id=67035

            Bug ID: 67035
           Summary: hideprefix only respected by top-level nodes
           Product: MediaWiki extensions
           Version: REL1_23 branch
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Unprioritized
         Component: CategoryTree
          Assignee: [email protected]
          Reporter: [email protected]
       Web browser: ---
   Mobile Platform: ---

I'm using hideprefix=always like this:

{{#categorytree:Category:Joefitzcat|mode=pages|hideprefix=always}}

However the Article namespace prefix is being shown in my tree:

-Joefitzcat
---Finncat
-----Article:Finn

I've debugged the javascript ajax and can see that the browser is passing the
correct value of "10" for hideprefix.  However, I've debugged the server side
by outputting the hideprefix option value in the text.  I changed
CategoryTreeFunctions.php lines 656 and 658 to read like this:

if ( $hideprefix ) {
    $label = htmlspecialchars( $title->getText() ) . $this->getOption(
'hideprefix' );
} else {
    $label = htmlspecialchars( $title->getPrefixedText() ) . $this->getOption(
'hideprefix' );
}

This makes my tree look like this:

-Joefitzcat10
---Finncat20
-----Article:Finn20

Somewhere the option to hide prefix always is being reset to the default during
ajax calls.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to