Directory moved
This commit is contained in:
parent
2515d02e6d
commit
925d2d2383
10 changed files with 63 additions and 55 deletions
|
|
@ -705,7 +705,7 @@ function admin_page_site_post(App $a) {
|
|||
check_form_security_token_redirectOnErr('/admin/site', 'admin_site');
|
||||
|
||||
if (!empty($_POST['republish_directory'])) {
|
||||
Worker::add(PRIORITY_LOW, 'directory');
|
||||
Worker::add(PRIORITY_LOW, 'Directory');
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -867,7 +867,7 @@ function admin_page_site_post(App $a) {
|
|||
// Has the directory url changed? If yes, then resubmit the existing profiles there
|
||||
if ($global_directory != Config::get('system', 'directory') && ($global_directory != '')) {
|
||||
Config::set('system', 'directory', $global_directory);
|
||||
Worker::add(PRIORITY_LOW, 'directory');
|
||||
Worker::add(PRIORITY_LOW, 'Directory');
|
||||
}
|
||||
|
||||
if ($a->get_path() != "") {
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ function profile_photo_post(App $a) {
|
|||
// Update global directory in background
|
||||
$url = System::baseUrl() . '/profile/' . $a->user['nickname'];
|
||||
if ($url && strlen(Config::get('system','directory'))) {
|
||||
Worker::add(PRIORITY_LOW, "directory", $url);
|
||||
Worker::add(PRIORITY_LOW, "Directory", $url);
|
||||
}
|
||||
|
||||
Worker::add(PRIORITY_LOW, 'profile_update', local_user());
|
||||
|
|
@ -232,7 +232,7 @@ function profile_photo_content(App $a) {
|
|||
// Update global directory in background
|
||||
$url = $_SESSION['my_url'];
|
||||
if ($url && strlen(Config::get('system','directory'))) {
|
||||
Worker::add(PRIORITY_LOW, "directory", $url);
|
||||
Worker::add(PRIORITY_LOW, "Directory", $url);
|
||||
}
|
||||
|
||||
goaway(System::baseUrl() . '/profiles');
|
||||
|
|
|
|||
|
|
@ -503,7 +503,7 @@ function profiles_post(App $a) {
|
|||
// Update global directory in background
|
||||
$url = $_SESSION['my_url'];
|
||||
if ($url && strlen(Config::get('system', 'directory'))) {
|
||||
Worker::add(PRIORITY_LOW, "directory", $url);
|
||||
Worker::add(PRIORITY_LOW, "Directory", $url);
|
||||
}
|
||||
|
||||
Worker::add(PRIORITY_LOW, 'profile_update', local_user());
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ function register_post(App $a) {
|
|||
|
||||
if($netpublish && $a->config['register_policy'] != REGISTER_APPROVE) {
|
||||
$url = System::baseUrl() . '/profile/' . $user['nickname'];
|
||||
Worker::add(PRIORITY_LOW, "directory", $url);
|
||||
Worker::add(PRIORITY_LOW, "Directory", $url);
|
||||
}
|
||||
|
||||
$using_invites = Config::get('system','invitation_only');
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ function user_allow($hash) {
|
|||
if (DBM::is_result($r) && $r[0]['net-publish']) {
|
||||
$url = System::baseUrl() . '/profile/' . $user[0]['nickname'];
|
||||
if ($url && strlen(Config::get('system','directory'))) {
|
||||
Worker::add(PRIORITY_LOW, "directory", $url);
|
||||
Worker::add(PRIORITY_LOW, "Directory", $url);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -645,7 +645,7 @@ function settings_post(App $a) {
|
|||
// Update global directory in background
|
||||
$url = $_SESSION['my_url'];
|
||||
if ($url && strlen(Config::get('system', 'directory'))) {
|
||||
Worker::add(PRIORITY_LOW, "directory", $url);
|
||||
Worker::add(PRIORITY_LOW, "Directory", $url);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue