move php path setting inside proc_run
This commit is contained in:
parent
fdc469ae4c
commit
755c2245e8
16 changed files with 25 additions and 67 deletions
|
|
@ -292,9 +292,8 @@ function register_post(&$a) {
|
|||
}
|
||||
|
||||
if($netpublish && $a->config['register_policy'] != REGISTER_APPROVE) {
|
||||
$php_path = ((strlen($a->config['php_path'])) ? $a->config['php_path'] : 'php');
|
||||
$url = $a->get_baseurl() . "/profile/$nickname";
|
||||
proc_run($php_path,"include/directory.php","$url");
|
||||
proc_run('php',"include/directory.php","$url");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue