$article = new Article( $title, $revisionID );
Because of its use, the wiki always sees the page as oldid, even if it is aproven, and behaves accordingly. Some things don't work in Translate and add "noindex".
if ( !empty( $revisionID ) || $egApprovedRevsBlankIfUnapproved ) {
$article = new Article( $title, $revisionID );
// This call is necessary because it
// causes $article->mRevision to get initialized,
// which in turn allows "edit section" links to show
// up if the approved revision is also the latest.
$article->fetchRevisionRecord();
}Changing this part to often solved problems for me:
if ( !empty( $revisionID ) && $revisionID != $latestRevID ) {
$article = new Article( $title, $revisionID );
// This call is necessary because it
// causes $article->mRevision to get initialized,
// which in turn allows "edit section" links to show
// up if the approved revision is also the latest.
$article->fetchRevisionRecord();
}This problem also causes https://phabricator.wikimedia.org/T405007 problem.