Fixes for LanguageConverter::parseCachedTable() (seems really broken for subpages...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 26 Nov 2011 15:12:23 +0000 (15:12 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 26 Nov 2011 15:12:23 +0000 (15:12 +0000)
commiteedc9712a93767ba19ec4fe841a3b2d0eb523e53
treec3d5e4a755b3d93aa14c95925543a934000d13ce
parent3257ec848d4a8c0b009b6c57ff24f62c6a188e60
Fixes for LanguageConverter::parseCachedTable() (seems really broken for subpages at the moment):
* Use Revsion::newFromTitle() to get the text instead of Article, avoids interference with "oldid" URL parameter. Also Article::getContents() (with final "s") does not exist and would throw a fatal error.
* Check if $subpage is empty before using the message cache instead of '/' in $code
* Early return if the page contains no text
languages/LanguageConverter.php