Rename OnceEvent to SimpleEvent, fix regression.
This commit is contained in:
parent
0ea3b934dd
commit
5b5023e696
@ -24,7 +24,7 @@ class DBActivity implements Activity {
|
||||
$stmt = $this->pdo->prepare($query);
|
||||
$stmt->execute(['date' => $date->format('Y-m-d H:i:s')]);
|
||||
if ($result = $stmt->fetch(PDO::FETCH_ASSOC)){
|
||||
$ev = new OnceEvent(
|
||||
$ev = new SimpleEvent(
|
||||
$result['name'],
|
||||
DateTimeImmutable::createFromFormat('Y-m-d H:i:s', $result['start']),
|
||||
DateTimeImmutable::createFromFormat('Y-m-d H:i:s', $result['stop']),
|
||||
|
@ -33,4 +33,8 @@ Class SimpleEvent extends Event {
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function getURL() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user