]> git.mxchange.org Git - friendica.git/commitdiff
Force a republish to the directory server
authorMichael <heluecht@pirati.ca>
Mon, 9 Oct 2017 19:26:45 +0000 (19:26 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 9 Oct 2017 19:26:45 +0000 (19:26 +0000)
mod/admin.php
view/templates/admin_site.tpl

index 9b8fa36a30c6d6abeb9dc94ad168b92db2b5e246..15663c2ed307ddb6ef45f1dae1007489a0e28cc7 100644 (file)
@@ -692,11 +692,16 @@ function admin_page_summary(App $a) {
  * @param App $a
  */
 function admin_page_site_post(App $a) {
-       if (!x($_POST,"page_site")) {
+       check_form_security_token_redirectOnErr('/admin/site', 'admin_site');
+
+       if (!empty($_POST['republish_directory'])) {
+               proc_run(PRIORITY_LOW, 'include/directory.php');
                return;
        }
 
-       check_form_security_token_redirectOnErr('/admin/site', 'admin_site');
+       if (!x($_POST,"page_site")) {
+               return;
+       }
 
        // relocate
        if (x($_POST,'relocate') && x($_POST,'relocate_url') && $_POST['relocate_url'] != "") {
@@ -1152,6 +1157,7 @@ function admin_page_site(App $a) {
                '$title' => t('Administration'),
                '$page' => t('Site'),
                '$submit' => t('Save Settings'),
+               '$republish' => t('Republish users to directory'),
                '$registration' => t('Registration'),
                '$upload' => t('File upload'),
                '$corporate' => t('Policies'),
index 04af33430619dd665c06cbb18e399c9db29a864b..715b422defbb4ee63256fd4776ce3bac998adcb7 100644 (file)
        {{/if}}
        {{include file="field_checkbox.tpl" field=$dfrn_only}}
        {{include file="field_input.tpl" field=$global_directory}}
+       <div class="submit"><input type="submit" name="republish_directory" value="{{$republish|escape:'html'}}" /></div>
        {{include file="field_checkbox.tpl" field=$thread_allow}}
        {{include file="field_checkbox.tpl" field=$newuser_private}}
        {{include file="field_checkbox.tpl" field=$enotify_no_content}}