There is now only one central parameter for the global directory.
This commit is contained in:
parent
6b744aa71c
commit
5ac38b7f99
19 changed files with 92 additions and 99 deletions
|
|
@ -118,7 +118,7 @@ function profile_photo_post(&$a) {
|
|||
info( t('Shift-reload the page or clear browser cache if the new photo does not display immediately.') . EOL);
|
||||
// Update global directory in background
|
||||
$url = $a->get_baseurl() . '/profile/' . $a->user['nickname'];
|
||||
if($url && strlen(get_config('system','directory_submit_url')))
|
||||
if($url && strlen(get_config('system','directory')))
|
||||
proc_run('php',"include/directory.php","$url");
|
||||
|
||||
require_once('include/profile_update.php');
|
||||
|
|
@ -217,7 +217,7 @@ function profile_photo_content(&$a) {
|
|||
|
||||
// Update global directory in background
|
||||
$url = $_SESSION['my_url'];
|
||||
if($url && strlen(get_config('system','directory_submit_url')))
|
||||
if($url && strlen(get_config('system','directory')))
|
||||
proc_run('php',"include/directory.php","$url");
|
||||
|
||||
goaway($a->get_baseurl() . '/profiles');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue