Fix bug in moveTo() with $auth=false and $createRedirect=false
authorCatrope <roan.kattouw@gmail.com>
Thu, 19 Jul 2012 21:22:27 +0000 (14:22 -0700)
committerCatrope <roan.kattouw@gmail.com>
Thu, 19 Jul 2012 22:48:05 +0000 (15:48 -0700)
commite23e3a3c79d0cbf092a0dc2698705917b6d7d053
treeb7acb67caa314765024403ea5f13c476c98f0ebd
parent2bf1a9cd8ad5f204faeaaa792a9a51899807fc59
Fix bug in moveTo() with $auth=false and $createRedirect=false

Even when $auth=false, moveToInternal() would unconditionally check
$wgUser's 'suppressredirect' permissions and override $createRedirect.
This means it was impossible to suppress redirect creation when moving
pages in a maintenance script, even when telling moveTo() to disable
permissions checks.

Fixed by moving the check from moveToInternal() up into moveTo() and
respecting $auth there

Change-Id: I9b52dc67c7ae2dbda3ca62f78d4d7df118771c0f
includes/Title.php