From adc875785922776be33254855b4c9061add9204b Mon Sep 17 00:00:00 2001 From: Matt Peel Date: Wed, 7 Nov 2007 02:33:09 +0000 Subject: [PATCH] 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 --- security/Security.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/security/Security.php b/security/Security.php index 23f19849e..70cf2113f 100644 --- a/security/Security.php +++ b/security/Security.php @@ -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( @@ -838,4 +838,4 @@ class Security extends Controller { } -?> \ No newline at end of file +?>