Last modified: 2013-04-09 09:07:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T22012, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 20012 - Glossary: Don't parse empty content
Glossary: Don't parse empty content
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
Glossary (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-30 13:44 UTC by David Hicks
Modified: 2013-04-09 09:07 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description David Hicks 2009-07-30 13:44:47 UTC
From http://www.mediawiki.org/wiki/Extension:Glossary#Don.27t_parse_empty_content

Glossary will attempt to parse zero length content and as a result, it may cause everything to fail. The simple fix is to open Glossary.php and find:

  if ($rev) {

And replace with:

  if ($rev && $text) {



To think about this in a wider context, is there any reason why the parser hook is being called on zero length content in the first place?
Comment 1 Platonides 2009-07-30 14:13:57 UTC
You could want to do something with an empty text.

BTW, I find the name of the project http://mediawiki.sourceforge.net/ to be confusing.
Comment 2 Andre Klapper 2013-04-09 09:07:16 UTC
http://www.mediawiki.org/wiki/Extension:Glossary says 

"This extension has been archived.

This extension is obsolete.
The following other choices are available:

    Lingo
    Terminology"

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links