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
Admin
HomeBot
Commits
2d2318a3
Commit
2d2318a3
authored
Jul 06, 2020
by
Admin
Browse files
ansgar improvement suggestion;
parent
b725f98e
Changes
1
Hide whitespace changes
Inline
Side-by-side
hobo.pl
View file @
2d2318a3
...
...
@@ -2593,15 +2593,18 @@ sub HandleArchiving {
$file
=~
s/%./.+/g
;
# ??? WTF IS THIS?
$dir
=
ResolveDateWildcards
(
$dir
,
localtime
(
gettimeofday
()));
return
if
(
!
opendir
(
my
$DH
,
$dir
)
)
;
return
if
(
!
opendir
my
$DH
,
$dir
);
my
@files
=
sort
grep
{
/^$file$/
}
readdir
(
$DH
)
;
my
@files
=
grep
{
/^$file$/
}
readdir
$DH
;
if
(
AttrVal
('
global
',
'
archivesort
',
'
alphanum
')
eq
'
timestamp
')
{
@files
=
map
{
$_
->
[
0
]
}
sort
{
$a
->
[
1
]
<=>
$b
->
[
1
]
}
map
{
[
$_
,
(
stat
("
$dir
/
$_
"))[
9
]
]
}
@files
;
}
else
{
@files
=
sort
@files
;
}
closedir
$DH
;
my
$max
=
@files
-
$nra
;
...
...
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