Pre-populate LinkCache for page we're editing

Bug: T78642
Change-Id: I2293903f9e131f3ea8c31302f86a138208ae57e3
This commit is contained in:
Alex Monk 2014-12-17 01:07:57 +00:00
parent 9b3d3080ce
commit 3007270645

View file

@ -467,6 +467,11 @@ class ApiVisualEditor extends ApiBase {
}
}
}
$links[$page->getPrefixedText()] = array(
'missing' => !$page->exists()
);
// On parser cache miss, just don't bother populating red link data
if ( $parsed === false ) {