API: Allow subclassing ApiQueryImageInfo
authorDerk-Jan Hartman <hartman.wiki@gmail.com>
Sun, 17 Apr 2016 15:46:07 +0000 (17:46 +0200)
committerDerk-Jan Hartman <hartman.wiki@gmail.com>
Sun, 17 Apr 2016 20:02:20 +0000 (22:02 +0200)
commit6e7473536925f2c502fd51d8bcb8caada050d31e
treee8c0c38552f74011935e0ea2c6156c196aaf6ff4
parent82797111cb01b304754eef13b1a95543b120c79f
API: Allow subclassing ApiQueryImageInfo

execute() references the static self::getInfo, which therefor cannot be
overriden by the subclass ApiQueryVideoInfo. Preferably, we'd fix the
implementation to not require this subclassing, but this will make
that transition easier. Use late static binding to make sure the
subclass implementation can be used.

Change-Id: Iab2d01abb9f9b3b799123d8ee344ea139e476576
includes/api/ApiQueryImageInfo.php