Last modified: 2010-05-15 15:59:37 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 11468 - Title.php: getParentCategories *sometimes* returns string....
Title.php: getParentCategories *sometimes* returns string....
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Categories (Other open bugs)
1.11.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-09-26 22:27 UTC by Mathias Ertl
Modified: 2010-05-15 15:59 UTC (History)
0 users

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


Attachments
patches the mentioned annoyance (53 bytes, patch)
2007-09-26 22:30 UTC, Mathias Ertl
Details

Description Mathias Ertl 2007-09-26 22:27:50 UTC
the function getParentCategories() in includes/Title.php usually returns an array of categories, but returns an empty string if a page belongs to no categories.The offending code is in line 2472 in Title.php.

The attached (trivial) patch makes the function return an empty array instead of an empty string if no results are found.
Comment 1 Mathias Ertl 2007-09-26 22:30:40 UTC
Created attachment 4165 [details]
patches the mentioned annoyance
Comment 2 Brion Vibber 2008-03-14 23:09:50 UTC
This seems to have been fixed in the meantime.

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


Navigation
Links