Changeset 59625 in spip-zone for _plugins_/comments_phpbb


Ignore:
Timestamp:
Mar 22, 2012, 7:45:30 AM (7 years ago)
Author:
crichard@…
Message:

Corrige le problème sur les dates des posts dans le forum phpbb

Location:
_plugins_/comments_phpbb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/comments_phpbb/comments_phpbb_fonctions.php

    r32294 r59625  
    88        list($year, $month, $day) = explode('-', $date);
    99        list($hour, $minute, $second) = explode(':', $time);
    10        
    11         $timestamp = mktime($hour, $minute, $second, $month, $day, $year);
    12        
     10
     11        $timestamp = mktime((int)$hour, (int)$minute, (int)$second, (int)$month, (int)$day, (int)$year);
     12
    1313        return $timestamp;
    1414}
  • _plugins_/comments_phpbb/comments_phpbb_pipeline.php

    r32294 r59625  
    99                $col_id = id_table_objet('article');
    1010               
    11               $result = sql_select(array('titre','chapo','statut','id_secteur'),$flux['args']['table'],$col_id."='".$flux['args']['id_objet']."'");
     11              $result = sql_select(array('titre','chapo','statut','id_secteur','date'),$flux['args']['table'],$col_id."='".$flux['args']['id_objet']."'");
    1212
    1313                // l'article existe
Note: See TracChangeset for help on using the changeset viewer.