Last modified: 2012-02-22 12:40:27 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 T21119, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19119 - new Article(Title::newFromText('foo')) broken if &oldid in url
new Article(Title::newFromText('foo')) broken if &oldid in url
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.14.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-07 22:11 UTC by Frantik
Modified: 2012-02-22 12:40 UTC (History)
1 user (show)

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


Attachments

Description Frantik 2009-06-07 22:11:51 UTC
When viewing previous versions of pages (&oldid in url), the PHP code

new Article(Title::newFromText('foo'));

Returns the article you're viewing, not the article 'foo'.

I am using this in my Extension:CustomSideBar
Comment 1 Tim Starling 2009-06-09 12:54:42 UTC
This has always been the case. You can use a zero oldid parameter:

$article = new Article( Title::newFromText('foo'), 0 );

Or just avoid using Article.php at all, since it is full of this kind of rubbish. 
Comment 2 Frantik 2009-06-09 14:36:23 UTC
thanks :)

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


Navigation
Links