Changed Security::permissionFailure to be what it should be - $controller instead of $page. However, it doesn't seem to be used anywhere anyway...

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@44408 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Matt Peel 2007-11-07 02:33:09 +00:00
parent 60bedcfc1e
commit adc8757859

View File

@ -81,7 +81,7 @@ class Security extends Controller {
* This will redirect to a login page.
* If you don't provide a messageSet, a default will be used.
*
* @param $page The controller that you were on to cause the permission
* @param Controller $controller The controller that you were on to cause the permission
* failure.
* @param string|array $messageSet The message to show to the user. This
* can be a string, or a map of different
@ -99,7 +99,7 @@ class Security extends Controller {
* permission to
* access the item.
*/
static function permissionFailure($page, $messageSet = null) {
static function permissionFailure($controller, $messageSet = null) {
// Prepare the messageSet provided
if(!$messageSet) {
$messageSet = array(