Add WebRequest methods for determining "safe" requests
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 6 May 2016 22:25:36 +0000 (15:25 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 10 May 2016 18:17:28 +0000 (11:17 -0700)
commit549af8bf9158b3fff3a1b5f219094acf9bf67608
tree4687c252ec7cc5050a26ab1e5800266c64e5772b
parent44a4bdb691fa8765540560f68addf966a39438e8
Add WebRequest methods for determining "safe" requests

* This is useful for logic that decides what DB (master/slave) to use
  based on the nature of the web request. It could also be used to
  enforce clear read/write distinctions via exceptions if DB_MASTER
  is misused.
* Also fixed two IDEA errors while editing this class.

Bug: T134608
Change-Id: I43f4bc06c19d823d7d1ffd9cee8bbe60563c7f82
includes/MediaWiki.php
includes/WebRequest.php
includes/api/ApiMain.php
includes/specialpage/SpecialPageFactory.php