Last modified: 2010-05-15 15:37:59 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 T7403, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 5403 - RSS feed for Special:Newpages spits out "undefined variable"
RSS feed for Special:Newpages spits out "undefined variable"
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.5.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 5556 (view as bug list)
Depends on:
Blocks:
  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: ---


Attachments

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.


Navigation
Links