Last modified: 2012-02-22 12:40:27 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
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.
thanks :)