thumb.php and img_auth.php cleanups
authorAaron Schulz <aschulz@wikimedia.org>
Sun, 20 Apr 2014 23:52:08 +0000 (16:52 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 21 Apr 2014 00:11:33 +0000 (17:11 -0700)
commit0f9d78eb07b89b9a7f179814e1be8b77bfe1795c
tree74b449ea21ff62d33b122c48f777d952a0d5e13f
parent1c5d667f38b5eadce2778d56d9058684d612908f
thumb.php and img_auth.php cleanups

* Specifically check isDeleted() instead of relying on the file
  being moved to the deleted zone alone.
* Made img_auth.php skip some unnecessary checks for public wikis.
  Also made it set the private cache control headers only if needed.

Change-Id: If82589acd53c02943d5f3bbafd29381fd63f8f68
img_auth.php
thumb.php