Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
fbe3213f
Commit
fbe3213f
authored
11 years ago
by
Robin Appelman
Browse files
Options
Downloads
Patches
Plain Diff
User: consisten variable naming
parent
00b4bfcb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/user.php
+9
-9
9 additions, 9 deletions
lib/user.php
with
9 additions
and
9 deletions
lib/user.php
+
9
−
9
View file @
fbe3213f
...
...
@@ -489,10 +489,10 @@ class OC_User {
/**
* disables a user
*
* @param string $u
ser
id the user to disable
* @param string $uid the user to disable
*/
public
static
function
disableUser
(
$u
ser
id
)
{
$user
=
self
::
getManager
()
->
get
(
$u
ser
id
);
public
static
function
disableUser
(
$uid
)
{
$user
=
self
::
getManager
()
->
get
(
$uid
);
if
(
$user
)
{
$user
->
setEnabled
(
false
);
}
...
...
@@ -501,10 +501,10 @@ class OC_User {
/**
* enable a user
*
* @param string $u
ser
id
* @param string $uid
*/
public
static
function
enableUser
(
$u
ser
id
)
{
$user
=
self
::
getManager
()
->
get
(
$u
ser
id
);
public
static
function
enableUser
(
$uid
)
{
$user
=
self
::
getManager
()
->
get
(
$uid
);
if
(
$user
)
{
$user
->
setEnabled
(
true
);
}
...
...
@@ -513,11 +513,11 @@ class OC_User {
/**
* checks if a user is enabled
*
* @param string $u
ser
id
* @param string $uid
* @return bool
*/
public
static
function
isEnabled
(
$u
ser
id
)
{
$user
=
self
::
getManager
()
->
get
(
$u
ser
id
);
public
static
function
isEnabled
(
$uid
)
{
$user
=
self
::
getManager
()
->
get
(
$uid
);
if
(
$user
)
{
return
$user
->
isEnabled
();
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment