[SPIP][PLUGINS] v3.0-->v3.2
[lhc/web/www.git] / www / plugins-dist / svp / genie / svp_actualiser_depots.php
index 64ac00a..f27c59b 100644 (file)
@@ -8,19 +8,22 @@
  * @package SPIP\SVP\Genie
  */
 
-if (!defined("_ECRIRE_INC_VERSION")) return;
+if (!defined("_ECRIRE_INC_VERSION")) {
+       return;
+}
 
 /**
  * Actualise tous les dépots
  *
  * @genie svp_actualiser_depots
  *
+ * @uses  svp_actualiser_depot()
  * @param int $last
  *     Timestamp de la dernière exécution de cette tâche
  * @return int
  *     Positif : la tâche a été effectuée
  */
-function genie_svp_actualiser_depots_dist ($last) {
+function genie_svp_actualiser_depots_dist($last) {
 
        include_spip('inc/svp_depoter_distant');
 
@@ -28,11 +31,9 @@ function genie_svp_actualiser_depots_dist ($last) {
        if ($resultats = sql_allfetsel('id_depot', 'spip_depots')) {
                foreach ($resultats as $depot) {
                        svp_actualiser_depot($depot['id_depot']);
-                       spip_log("ACTION ACTUALISER DEPOT (automatique) : id_depot = ". $depot['id_depot'], 'svp_actions.' . _LOG_INFO);
+                       spip_log("ACTION ACTUALISER DEPOT (automatique) : id_depot = " . $depot['id_depot'], 'svp_actions.' . _LOG_INFO);
                }
        }
 
        return 1;
 }
-
-?>