Last modified: 2010-05-15 15:37:59 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 5403 - RSS feed for Special:Newpages spits out "undefined variable"
RSS feed for Special:Newpages spits out "undefined variable"
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: 5556 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2006-03-30 21:02 UTC by Bram Cramer
Modified: 2010-05-15 15:37 UTC (History)
1 user (show)

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


Description Bram Cramer 2006-03-30 21:02:17 UTC
Upon checking the RSS feed for the Special:Newpages page, I found that the file SpecialNewPages.php contains an 
error at line 95 (as is indicated in the RSS feed's erroneous content).

The line reads
return '<p>' . htmlspecialchars( wfMsg( 'summary' ) ) . ': ' . $text . "</p>\n<hr />\n<div>" .

the variable $text is undefined. My guess is that this should be the value from the rev_comment column in the 
revision table. That lead me to change the line to: 

return '<p>' . htmlspecialchars( wfMsg( 'summary' ) ) . ': ' . $revision->getComment() . "</p>\n<hr />\n<div>" .

Is this a correct guess, or should another value from $revision be taken?
Comment 1 Brion Vibber 2006-04-12 19:58:23 UTC
*** Bug 5556 has been marked as a duplicate of this bug. ***
Comment 2 Brion Vibber 2006-04-12 20:22:36 UTC
Fixed in r13614 on trunk, and on REL1_6.

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