Refactor requiresToken to getTokenSalt - Returns salt if exists, null if no salt...
authorSam Reed <reedy@users.mediawiki.org>
Mon, 15 Feb 2010 23:53:43 +0000 (23:53 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Mon, 15 Feb 2010 23:53:43 +0000 (23:53 +0000)
commit0e8b0b41ac5b2364d25e4a722456a213463e8291
tree17416238869de6f322a2f0c306231e9f3c2cea9c
parentc1543a9304a8a22b08aff85b7b29e129cabffbd1
Refactor requiresToken to getTokenSalt - Returns salt if exists, null if no salt, else false if no token required

Move sessionfailure (token validation checking) up a couple of levels

Part of bug 21991

Followup to r62482 and r62504
15 files changed:
includes/api/ApiBase.php
includes/api/ApiBlock.php
includes/api/ApiDelete.php
includes/api/ApiEditPage.php
includes/api/ApiEmailUser.php
includes/api/ApiImport.php
includes/api/ApiMain.php
includes/api/ApiMove.php
includes/api/ApiPatrol.php
includes/api/ApiProtect.php
includes/api/ApiRollback.php
includes/api/ApiUnblock.php
includes/api/ApiUndelete.php
includes/api/ApiUpload.php
includes/api/ApiUserrights.php