Last change
on this file since 93640 was
93640,
checked in by marcimat@…, 5 years ago
|
Meilleure compatibilité avec PSR-2 et nos règles d'écriture, en appliquant
différents fix avec php-cs-fixers. Fixers appliqués ici :
'encoding', utf8
'eof_ending', un saut de ligne en fin de fichier
'elseif', elseif plutôt que else if
'function_call_space', espaces sur fonctions
'function_declaration', espaces sur fonctions
'function_typehint_space', espaces sur fonctions
'linefeed', sauts de ligne \n uniquement
'lowercase_constants', true, false, null en munuscule
'lowercase_keywords', mots clés PHP en lowercase
'method_argument_space', espaces sur appels de fonctions
'multiple_use', use unique sur fonctions anonymes
'newline_after_open_tag', ouverture de php… et c'est tout sur cette ligne
'operators_spaces', espaces de part et d'autres des opérateurs binaires
'parenthesis', pas d'espace juste après parenthèse ouvrante, ou avant parenthèse fermante
'php_closing_tag', pas de fermeture de php
'short_tag', tag PHP corrects
'trailing_spaces', pas d'espace qui traîne en fin de ligne
'visibility', déclarer 'public / private / protected' sur les méthodes
|
File size:
592 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | if (!defined("_ECRIRE_INC_VERSION")) { |
---|
4 | return; |
---|
5 | } |
---|
6 | |
---|
7 | /** |
---|
8 | * Moderation des forums specifique a un article |
---|
9 | * |
---|
10 | * @param int $id_objet identifiant de l'article |
---|
11 | * @return string : "non", "pos"(teriori), "pri"(ori), "abo"(nnement) |
---|
12 | */ |
---|
13 | function inc_article_accepter_forums_publics_dist($id_objet) { |
---|
14 | $accepter_forum = $GLOBALS['meta']["forums_publics"]; |
---|
15 | $art_accepter_forum = sql_getfetsel('accepter_forum', 'spip_articles', array( |
---|
16 | "id_article = " . intval($id_objet) |
---|
17 | )); |
---|
18 | if ($art_accepter_forum) { |
---|
19 | $accepter_forum = $art_accepter_forum; |
---|
20 | } |
---|
21 | |
---|
22 | return substr($accepter_forum, 0, 3); |
---|
23 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.