Pass READ_LATEST in $flags to Title::loadRestrictions
authorElliott Eggleston <ejegg@ejegg.com>
Tue, 18 Dec 2018 19:35:00 +0000 (14:35 -0500)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 7 Jan 2019 17:12:14 +0000 (17:12 +0000)
commit9cc425ff958bbdd35420de114e30867b01b22554
treed5801b61be3a27187bc4863b80caa310155bbc6d
parentd4a2a157b86eda9cc9493b0cddc4f4dac8fb805c
Pass READ_LATEST in $flags to Title::loadRestrictions

To be more consistent with other calls that do the same thing
Also bypass cache when READ_LATEST is set.
Removes duplicated $this->getArticleID call.
Removes $readLatest parameter from loadRestrictionsFromRows.

Bug: T210983
Change-Id: I2340e81fda8244b31f6a3c511ca29162f21d91c9
includes/Title.php