Rename OnceEvent to SimpleEvent, fix regression.

This commit is contained in:
Yorin Anne De Jong 2016-08-26 17:58:43 +02:00
parent 0ea3b934dd
commit 5b5023e696
2 changed files with 5 additions and 1 deletions

View File

@ -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']),

View File

@ -33,4 +33,8 @@ Class SimpleEvent extends Event {
return $this->name;
}
public function getURL() {
}
}