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
fa632d87
Commit
fa632d87
authored
Aug 11, 2008
by
Richard Mansfield
Browse files
Create admin public folder without an owner
parent
79cadb89
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/file/lib.php
View file @
fa632d87
...
@@ -962,12 +962,11 @@ class ArtefactTypeFolder extends ArtefactTypeFileBase {
...
@@ -962,12 +962,11 @@ class ArtefactTypeFolder extends ArtefactTypeFileBase {
AND a.parent IS NULL"
,
array
(
$name
,
'folder'
));
AND a.parent IS NULL"
,
array
(
$name
,
'folder'
));
if
(
!
$folderid
)
{
if
(
!
$folderid
)
{
global
$USER
;
global
$USER
;
if
(
get_field
(
'usr'
,
'admin'
,
'id'
,
$USER
->
id
))
{
if
(
$USER
->
get
(
'admin'
))
{
$description
=
get_string_from_language
(
get_config
(
'lang'
),
$description
=
get_string_from_language
(
get_config
(
'lang'
),
'adminpublicdirdescription'
,
'admin'
);
'adminpublicdirdescription'
,
'admin'
);
$data
=
(
object
)
array
(
'title'
=>
$name
,
$data
=
(
object
)
array
(
'title'
=>
$name
,
'description'
=>
$description
,
'description'
=>
$description
,
'owner'
=>
$USER
->
id
,
'institution'
=>
'mahara'
);
'institution'
=>
'mahara'
);
$f
=
new
ArtefactTypeFolder
(
0
,
$data
);
$f
=
new
ArtefactTypeFolder
(
0
,
$data
);
$f
->
commit
();
$f
->
commit
();
...
...
Write
Preview
Markdown
is supported
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