MovePage: Move target existence check into isValidMove()
authorKunal Mehta <legoktm@gmail.com>
Wed, 29 Apr 2015 17:36:03 +0000 (10:36 -0700)
committerKunal Mehta <legoktm@gmail.com>
Wed, 29 Apr 2015 17:36:03 +0000 (10:36 -0700)
commit75c813cc9a992e7e2766d0ff79db1021e3beba8a
tree81e8d301fb27c536f06da72d1c44e078f9c4bda9
parentacfa9695eb7a25f83cb732b3afb24ca7f1691d27
MovePage: Move target existence check into isValidMove()

The target existence check is not dependent upon the user who is making
the move, so move it into MovePage::isValidMove() instead of
MovePage::checkPermissions() which not all callers will call.

Bug: T97536
Change-Id: I3aad1455ad4c064cbeaf35221a00ca6baba97c33
includes/MovePage.php