Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
hubzilla
core
Commits
ffedbeb2
Commit
ffedbeb2
authored
Nov 30, 2020
by
Mario
Browse files
whitespace
parent
a1e06bf3
Pipeline
#367759
passed with stage
in 4 minutes and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Zotlabs/Module/Attach_edit.php
View file @
ffedbeb2
...
...
@@ -24,7 +24,7 @@ class Attach_edit extends Controller {
$folder
=
((
x
(
$_POST
,
'folder'
))
?
notags
(
$_POST
[
'folder'
])
:
''
);
$newfolder
=
((
x
(
$_POST
,
'newfolder_'
.
$attach_id
))
?
notags
(
$_POST
[
'newfolder_'
.
$attach_id
])
:
''
);
$filename
=
((
x
(
$_POST
,
'filename'
))
?
notags
(
$_POST
[
'filename'
])
:
''
);
$newfilename
=
((
x
(
$_POST
,
'newfilename_'
.
$attach_id
))
?
notags
(
$_POST
[
'newfilename_'
.
$attach_id
])
:
''
);
$newfilename
=
((
x
(
$_POST
,
'newfilename_'
.
$attach_id
))
?
notags
(
$_POST
[
'newfilename_'
.
$attach_id
])
:
''
);
$recurse
=
((
x
(
$_POST
,
'recurse_'
.
$attach_id
))
?
intval
(
$_POST
[
'recurse_'
.
$attach_id
])
:
0
);
$notify
=
((
x
(
$_POST
,
'notify_edit_'
.
$attach_id
))
?
intval
(
$_POST
[
'notify_edit_'
.
$attach_id
])
:
0
);
$copy
=
((
x
(
$_POST
,
'copy_'
.
$attach_id
))
?
intval
(
$_POST
[
'copy_'
.
$attach_id
])
:
0
);
...
...
@@ -32,10 +32,10 @@ class Attach_edit extends Controller {
$channel
=
App
::
get_channel
();
if
(
$copy
)
{
attach_copy
(
$channel
[
'channel_id'
],
$resource
,
$newfolder
,
$newfilename
);
attach_copy
(
$channel
[
'channel_id'
],
$resource
,
$newfolder
,
$newfilename
);
}
elseif
(
$folder
!==
$newfolder
||
$filename
!==
$newfilename
)
{
attach_move
(
$channel
[
'channel_id'
],
$resource
,
$newfolder
,
$newfilename
);
elseif
(
$folder
!==
$newfolder
||
$filename
!==
$newfilename
)
{
attach_move
(
$channel
[
'channel_id'
],
$resource
,
$newfolder
,
$newfilename
);
}
$acl
=
new
AccessList
(
$channel
);
...
...
@@ -58,7 +58,7 @@ class Attach_edit extends Controller {
}
goaway
(
dirname
(
$url
));
}
}
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