Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
91e26085
Commit
91e26085
authored
Sep 12, 2008
by
Nigel McNie
Browse files
[#2984] Rename groups to have '.deleted.timestamp' after their name when they're deleted.
parent
a6bcf6a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/group.php
View file @
91e26085
...
...
@@ -331,7 +331,15 @@ function group_has_members($groupid) {
}
function
delete_group
(
$groupid
)
{
update_record
(
'group'
,
array
(
'deleted'
=>
1
),
array
(
'id'
=>
$groupid
));
update_record
(
'group'
,
array
(
'deleted'
=>
1
,
'name'
=>
get_field
(
'group'
,
'name'
,
'id'
,
$groupid
)
.
'.deleted.'
.
time
(),
),
array
(
'id'
=>
$groupid
,
)
);
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment