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)) {
|
if (is_array($times)) {
|
||||||
$d = array();
|
$d = array();
|
||||||
foreach ($times as $time) {
|
foreach ($times as $time) {
|
||||||
$d[] = helper::dateUTF8('%d %B %Y - %H:%M:%S', $time);
|
self::$userHistory[] = [
|
||||||
}
|
|
||||||
$dates = implode('<br />', $d);
|
|
||||||
} else {
|
|
||||||
$dates = helper::dateUTF8('%d %B %Y - %H:%M:%S', $times);
|
|
||||||
}
|
|
||||||
|
|
||||||
self::$userHistory[$pageId] = [
|
|
||||||
$pages[$pageId]['number'],
|
$pages[$pageId]['number'],
|
||||||
$pages[$pageId]['title'],
|
html_entity_decode($pages[$pageId]['title']),
|
||||||
$dates,
|
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
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
@ -1110,8 +1112,6 @@ class course extends common
|
|||||||
helper::dateUTF8('%d %B %Y %H:%M:%S', $times)
|
helper::dateUTF8('%d %B %Y %H:%M:%S', $times)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dossier temporaire
|
// Dossier temporaire
|
||||||
|
Loading…
Reference in New Issue
Block a user