userHistory, one event a line
This commit is contained in:
parent
d59062cd46
commit
103991b2be
@ -970,19 +970,21 @@ class course extends common
|
||||
if (is_array($times)) {
|
||||
$d = array();
|
||||
foreach ($times as $time) {
|
||||
$d[] = helper::dateUTF8('%d %B %Y - %H:%M:%S', $time);
|
||||
}
|
||||
$dates = implode('<br />', $d);
|
||||
} else {
|
||||
$dates = helper::dateUTF8('%d %B %Y - %H:%M:%S', $times);
|
||||
}
|
||||
|
||||
self::$userHistory[$pageId] = [
|
||||
self::$userHistory[] = [
|
||||
$pages[$pageId]['number'],
|
||||
$pages[$pageId]['title'],
|
||||
$dates,
|
||||
html_entity_decode($pages[$pageId]['title']),
|
||||
helper::dateUTF8('%d %B %Y %H:%M:%S', $time)
|
||||
];
|
||||
}
|
||||
} else {
|
||||
self::$userHistory[] = [
|
||||
$pages[$pageId]['number'],
|
||||
html_entity_decode($pages[$pageId]['title']),
|
||||
helper::dateUTF8('%d %B %Y %H:%M:%S', $times)
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Valeurs en sortie
|
||||
$this->addOutput([
|
||||
@ -1110,8 +1112,6 @@ class course extends common
|
||||
helper::dateUTF8('%d %B %Y %H:%M:%S', $times)
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// Dossier temporaire
|
||||
|
Loading…
Reference in New Issue
Block a user