API CHANGE Removed BasicAuth::enable()/disable(), use protect_entire_site()

This commit is contained in:
Ingo Schommer 2012-03-09 21:20:10 +01:00
parent 27fd3e5633
commit 4216a09177
2 changed files with 0 additions and 17 deletions

View File

@ -35,7 +35,6 @@ incomplete - please add to it** *Try to keep it in alphabetical order too! :)*
| ---- | | ----------- |
| Authenticator::register_authenticator($authenticator);| | Enable an authentication method (for more details see [security](/topics/security)). |
| Authenticator::set_default_authenticator($authenticator); | | Modify tab-order on login-form.|
| BasicAuth::disable() | | Disable basic authentication checking for dev sites (useful when testing credit card transaction post-backs etc) |
| BBCodeParser::disable_autolink_urls(); | | Disables plain hyperlinks from being turned into links when bbcode is parsed. |
| BlogEntry::allow_wysiwyg_editing(); | | Enable rich text editing for blog posts. |
| ContentNegotiator::set_encoding(string $encoding) | | The encoding charset to use - UTF-8 by default |

View File

@ -114,22 +114,6 @@ class BasicAuth {
if($message) self::$entire_site_protected_message = $message;
}
/**
* @deprecated Use BasicAuth::protect_entire_site() instead.
*/
static function enable() {
Deprecation::notice('2.4', 'Use BasicAuth::protect_entire_site() instead.');
return self::protect_entire_site();
}
/**
* @deprecated Use BasicAuth::protect_entire_site(false) instead.
*/
static function disable() {
Deprecation::notice('2.4', 'Use BasicAuth::protect_entire_site(false) instead.');
return self::protect_entire_site(false);
}
/**
* Call {@link BasicAuth::requireLogin()} if {@link BasicAuth::protect_entire_site()} has been called.
* This is a helper function used by {@link Controller::init()}.