Dotclear


Ignore:
Timestamp:
11/30/16 17:03:19 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add an option to auto ping on 1st publication, closes #871 and #548, addresses #970 and #784

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/pings/index.php

    r3159 r3428  
    3434 
    3535          $core->blog->settings->addNamespace('pings'); 
     36          // Settings for all blogs 
    3637          $core->blog->settings->pings->put('pings_active',!empty($_POST['pings_active']),null,null,true,true); 
    3738          $core->blog->settings->pings->put('pings_uris',$pings_uris,null,null,true,true); 
     39          // Settings for current blog only 
     40          $core->blog->settings->pings->put('pings_auto',!empty($_POST['pings_auto']),null,null,true,false); 
     41 
    3842          dcPage::addSuccessNotice(__('Settings have been successfully updated.')); 
    3943          http::redirect($p_url); 
     
    9498'</p>'. 
    9599 
     100'<p><label for="pings_auto" class="classic">'.form::checkbox('pings_auto',1,$core->blog->settings->pings->pings_auto). 
     101__('Auto pings all services on first publication of entry (current blog only)').'</label></p>'. 
     102 
    96103'<p><input type="submit" value="'.__('Save').'" />'. 
    97104$core->formNonce().'</p>'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map