Skip to content
Snippets Groups Projects
Commit 54e34897 authored by efalcy's avatar efalcy Committed by Patrick Barroca
Browse files

hotline #16604 : add hostname in newsletters script

parent e6805528
Branches
Tags
3 merge requests!896Master,!795Wip test newopac3,!766Wip test newopac3
......@@ -3,10 +3,10 @@ if (!$argv[2]) {
echo "Missing arguments: hostname basedir";
exit(1);
}
$basedir = $argv[1];
$_SERVER['HTTP_HOST'] = 'http://www.genevois-biblio.fr/genevois-biblio.fr';
$hostname=$argv[1];
$basedir = $argv[2];
// $_SERVER['HTTP_HOST'] = 'http://www.genevois-biblio.fr/genevois-biblio.fr';
$_SERVER['HTTP_HOST']=$hostname;
chdir($basedir);
require('console.php');
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment