Last modified: 2014-02-15 14:10:53 UTC
In MW 1.16.2, the $key part of the links placeholders is not saved in “serialised” links by Parser->serialiseHalfParsedText(). L.5121: $links['internal'][$ns][] = $this->mLinkHolders->internals[$ns][$key]; The $key is assumed to be evenly growing integer, but in some cases this gives wrong results – eg on blenderwiki, we had only one link on ns102: 102:358, which got “serialized” as 102:0… Obviously, that link is lost! (and at deserialisation, it produces a debug warning, as not found in parser’s links). The solution is trivial – just use $key in $links array as well: L.5121: $links['internal'][$ns][$key] = $this->mLinkHolders->internals[$ns][$key]; Note the problem is the same for interwiki links (l.5131)…