From dbf44bde6e86c270d618be7661dd4e2fb5cf2563 Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 15 Dec 2005 21:37:12 +0000 Subject: Fixed a bug about user file extension. --- framework/Security/TUserManager.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'framework/Security/TUserManager.php') diff --git a/framework/Security/TUserManager.php b/framework/Security/TUserManager.php index 3c30dc19..783d1c60 100644 --- a/framework/Security/TUserManager.php +++ b/framework/Security/TUserManager.php @@ -191,6 +191,11 @@ class TUser extends TComponent implements IUser */ class TUserManager extends TModule { + /** + * extension name to the user file + */ + const USER_FILE_EXT='.xml'; + /** * @var array list of users managed by this module */ @@ -278,7 +283,7 @@ class TUserManager extends TModule { if($this->_initialized) throw new TInvalidOperationException('usermanager_userfile_unchangeable'); - else if(($this->_userFile=Prado::getPathOfNamespace($value,self::DB_FILE_EXT))===null) + else if(($this->_userFile=Prado::getPathOfNamespace($value,self::USER_FILE_EXT))===null) throw new TConfigurationException('usermanager_userfile_invalid',$value); } -- cgit v1.2.3