API: Move stats update for API module execution to when the module is actually executed
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 7 Jul 2015 17:46:17 +0000 (13:46 -0400)
committerAnomie <bjorsch@wikimedia.org>
Tue, 7 Jul 2015 17:49:43 +0000 (17:49 +0000)
commit3e1b3e9348c3718de0c4191034dce497ad8d4c97
tree436efaa60bf6ff7bd2169a192750303913ff4d7e
parentcf7de707011407d03828eefba6ec5e379f869317
API: Move stats update for API module execution to when the module is actually executed

The place it was before could easily be reached without actually
executing (or even constructing) the module.

Change-Id: I6f807adc9cbf71c5d7b83c7eec43965dce1d2a16
includes/api/ApiMain.php