BUGFIX: Made use of new BasicAuth::protect_entire_site() consistent. (from r91658)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@91660 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2009-11-15 23:44:15 +00:00
parent 22affb95c8
commit 727f930e31
3 changed files with 5 additions and 5 deletions

View File

@ -629,7 +629,7 @@ class Email_Template extends Email {
class Email_BounceHandler extends Controller {
function init() {
BasicAuth::disable();
BasicAuth::protect_entire_site(false);
parent::init();
}

View File

@ -90,7 +90,7 @@ class BasicAuth extends Object {
* @deprecated Use BasicAuth::protect_entire_site() instead.
*/
static function enable() {
user_error("BasicAuth::enable() is deprated. Use BasicAuth::protect_entire_site() instead.", E_USER_NOTICE);
user_error("BasicAuth::enable() is deprecated. Use BasicAuth::protect_entire_site() instead.", E_USER_NOTICE);
return self::protect_entire_site();
}
@ -98,7 +98,7 @@ class BasicAuth extends Object {
* @deprecated Use BasicAuth::protect_entire_site(false) instead.
*/
static function disable() {
user_error("BasicAuth::disable() is deprated. Use BasicAuth::protect_entire_site(false) instead.", E_USER_NOTICE);
user_error("BasicAuth::disable() is deprecated. Use BasicAuth::protect_entire_site(false) instead.", E_USER_NOTICE);
return self::protect_entire_site(false);
}

View File

@ -65,7 +65,7 @@ class RestfulServiceTest extends SapphireTest {
class RestfulServiceTest_Controller extends Controller {
public function index() {
ContentNegotiator::disable();
BasicAuth::disable();
BasicAuth::protect_entire_site(false);
$request_count = count($_REQUEST);
$get_count = count($_GET);
$post_count = count($_POST);
@ -98,7 +98,7 @@ XML;
public function invalid() {
ContentNegotiator::disable();
BasicAuth::disable();
BasicAuth::protect_entire_site(false);
$out = <<<XML
<?xml version="1.0"?>
<test>