Changeset 107615 in spip-zone


Ignore:
Timestamp:
Nov 18, 2017, 12:43:22 PM (3 years ago)
Author:
arnaud.berard@…
Message:

secu mise en forme psr

Location:
_plugins_/stocks/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/stocks/trunk/base/stocks.php

    r107609 r107615  
    22
    33// Sécurité
    4 if (!defined('_ECRIRE_INC_VERSION')) return;
     4if (!defined("_ECRIRE_INC_VERSION")) {
     5        return;
     6}
    57
    68function stocks_declarer_tables_interfaces($interface){
  • _plugins_/stocks/trunk/inc/stocks.php

    r107609 r107615  
    22
    33// Sécurité
    4 if (!defined('_ECRIRE_INC_VERSION')) return;
     4if (!defined("_ECRIRE_INC_VERSION")) {
     5        return;
     6}
    57
    68function get_quantite($objet,$id_objet) {
  • _plugins_/stocks/trunk/stocks_fonctions.php

    r107612 r107615  
    11<?php
    22
    3 
    4 
    53// Sécurité
    6 if (!defined('_ECRIRE_INC_VERSION')) return;
     4if (!defined("_ECRIRE_INC_VERSION")) {
     5        return;
     6}
    77
    88include_spip('inc/stocks');
     
    2020    $p->code = "quantite_champ_ou_stock(".champ_sql('quantite', $p).",".sql_quote($_objet).",$_id)";
    2121    $p->interdire_scripts = false;
    22 
     22               
    2323        return $p;
    2424}
     
    3434        return $quantite;
    3535    }
    36        
    3736}
    3837
Note: See TracChangeset for help on using the changeset viewer.