Skip to content

Commit f599fa5

Browse files
author
Kazuki Suzuki
authored
Add files via upload
1 parent f5b0fb6 commit f599fa5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

phpneofile.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function pn_decode_escape($s) {
119119

120120
function pn_default_formatspecs() {
121121
return array(
122-
'format_magic' => 'ArchiveFile',
122+
'format_magic' => 'NeoFile',
123123
'format_ver' => '001',
124124
'format_delimiter' => "\x00",
125125
'new_style' => true,
@@ -138,12 +138,12 @@ function pn_load_formatspecs_from_ini($paths = null, $prefer_section = null) {
138138
if (is_array($paths)) $cands = array_merge($cands, $paths);
139139
else $cands[] = $paths;
140140
}
141-
foreach (array('PYNEOFILE_INI','PYARCHIVE_INI') as $env) {
141+
foreach (array('PYNEOFILE_INI') as $env) {
142142
if (!empty($_ENV[$env])) $cands[] = $_ENV[$env];
143143
elseif (!empty($_SERVER[$env])) $cands[] = $_SERVER[$env];
144144
elseif ($v = getenv($env)) $cands[] = $v;
145145
}
146-
$cands = array_merge($cands, array('pyneofile.ini','archivefile.ini','catfile.ini','foxfile.ini'));
146+
$cands = array_merge($cands, array('neofile.ini'));
147147
$picked = null;
148148
foreach ($cands as $p) {
149149
if ($p && is_file($p)) { $picked = $p; break; }

0 commit comments

Comments
 (0)