fix(move): get real user
Some checks failed
/ test (push) Has been cancelled

This commit is contained in:
Florian Schmitt 2024-12-20 10:32:07 +03:00
parent 09703698ec
commit eac36d3e32

View file

@ -19,13 +19,17 @@ function wikiIsOnServer($path)
return false; return false;
} }
$re = '#/home/(.*)/#mU';
$str = '/home/civamgardfr/civamgard.fr/';
preg_match_all('#/home/(.*)/#mU', '/home/civamgardfr/civamgard.fr/', $user, PREG_SET_ORDER, 0);
$wakkaConfig = []; $wakkaConfig = [];
include_once($configFile); include_once($configFile);
return [ return [
'path' => str_replace('wakka.config.php', '', $configFile), 'path' => str_replace('wakka.config.php', '', $configFile),
'config' => $wakkaConfig, 'config' => $wakkaConfig,
'user' => $path, 'user' => $user[0][1],
'group' => $path, 'group' => $user[0][1],
]; ];
} }