Ignore:
Timestamp:
Dec 13, 2015, 11:54:48 AM (4 years ago)
Author:
cedric@…
Message:

Indentation et regles de codage selon http://www.spip.net/fr_article3497.html#regles_codage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _core_/plugins/sites/action/syndiquer_site.php

    r93092 r93624  
    1111\***************************************************************************/
    1212
    13 if (!defined("_ECRIRE_INC_VERSION")) return;
     13if (!defined("_ECRIRE_INC_VERSION")) {
     14        return;
     15}
    1416
    1517// http://code.spip.net/@action_editer_site_dist
    1618function action_syndiquer_site_dist($id_syndic = null) {
    1719
    18         if (is_null($id_syndic)){
     20        if (is_null($id_syndic)) {
    1921                $securiser_action = charger_fonction('securiser_action', 'inc');
    2022                $id_syndic = $securiser_action();
     
    2224
    2325
    24         $id_job = job_queue_add('syndic_a_jour','syndic_a_jour',array($id_syndic),'genie/syndic',true);
     26        $id_job = job_queue_add('syndic_a_jour', 'syndic_a_jour', array($id_syndic), 'genie/syndic', true);
    2527        // l'executer immediatement si possible
    2628        if ($id_job) {
    2729                include_spip('inc/queue');
    2830                queue_schedule(array($id_job));
    29         }
    30         else {
    31                 spip_log("Erreur insertion syndic_a_jour($id_syndic) dans la file des travaux",_LOG_ERREUR);
     31        } else {
     32                spip_log("Erreur insertion syndic_a_jour($id_syndic) dans la file des travaux", _LOG_ERREUR);
    3233        }
    3334
Note: See TracChangeset for help on using the changeset viewer.