From 06cf80edb938522ffb78716cc86e729c345b57b9 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 25 Mar 2009 22:30:29 +0000 Subject: [PATCH] BUGFIX Undefined function "use_error" - should've been "user_error" (Merged from r69938) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@73657 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- security/Permission.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/security/Permission.php b/security/Permission.php index 2ce7fcace..396a7a0d0 100755 --- a/security/Permission.php +++ b/security/Permission.php @@ -296,7 +296,7 @@ class Permission extends DataObject { if(is_numeric($arg)) { $perm->Arg = $arg; } else { - use_error("Permission::checkMember: bad arg '$arg'", + user_error("Permission::checkMember: bad arg '$arg'", E_USER_ERROR); } } @@ -330,7 +330,7 @@ class Permission extends DataObject { if(is_numeric($arg)) { $perm->Arg = $arg; } else { - use_error("Permission::checkMember: bad arg '$arg'", + user_error("Permission::checkMember: bad arg '$arg'", E_USER_ERROR); } }