Ignore:
Timestamp:
Dec 13, 2015, 11:39:09 AM (5 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/forum/urls/generer_url_ecrire_forum.php

    r93092 r93612  
    1111\***************************************************************************/
    1212
    13 if (!defined("_ECRIRE_INC_VERSION")) return;
     13if (!defined("_ECRIRE_INC_VERSION")) {
     14        return;
     15}
    1416
    1517// http://code.spip.net/@generer_url_ecrire_forum
    1618function urls_generer_url_ecrire_forum_dist($id, $args = '', $ancre = '', $public = null, $connect = '') {
    1719        $a = "id_forum=" . intval($id);
    18         if (is_null($public) AND !$connect)
     20        if (is_null($public) AND !$connect) {
    1921                $public = objet_test_si_publie('forum', $id, $connect);
     22        }
    2023        $h = ($public OR $connect)
    21         ?  generer_url_entite_absolue($id, 'forum', $args, $ancre, $connect)
    22         : (generer_url_ecrire('controler_forum', "debut_forum=@$id" . ($args ? "&$args" : ''))
    23                 . ($ancre ? "#$ancre" : ''));
     24                ? generer_url_entite_absolue($id, 'forum', $args, $ancre, $connect)
     25                : (generer_url_ecrire('controler_forum', "debut_forum=@$id" . ($args ? "&$args" : ''))
     26                        . ($ancre ? "#$ancre" : ''));
     27
    2428        return $h;
    2529}
Note: See TracChangeset for help on using the changeset viewer.