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

           Summary: Glossary: Incompatibility with CrossReference
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Normal
         Component: General/Unknown
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: hickse...@optusnet.com.au


From
http://www.mediawiki.org/wiki/Extension:Glossary#Incompatibility_with_CrossReference

CrossReference does not work properly with the Glossary extension because
Glossary will parse the text before CrossReference does, mangling the cross
references in the process. Glossary should not work for <a> elements
(hyperlinks). To solve this problem, inside Glossary.php, find:

  if ($node->nodeType == XML_TEXT_NODE) {

And replace that line with the following code:

  $parent_node = $node->parentNode;
  if ($parent_node && $parent_node->nodeType == XML_ELEMENT_NODE) {
    $tag_name = $parent_node->tagName;
  }
  if ($node->nodeType == XML_TEXT_NODE && $tag_name != 'a') {


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to