]> git.mxchange.org Git - friendica.git/commitdiff
Fix typo in mod/events
authorHypolite Petovan <mrpetovan@gmail.com>
Sat, 17 Mar 2018 20:43:15 +0000 (16:43 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Fri, 23 Mar 2018 10:34:21 +0000 (06:34 -0400)
- Add todo in Model\Event

mod/events.php
src/Model/Event.php

index 22a9b4677db4045c77f68656ce552ae60b8fcc93..5f6a589d2e80cedd59346bfb4543a0c2f67f40bb 100644 (file)
@@ -339,7 +339,7 @@ function events_content(App $a) {
 
                // get events by id or by date
                if ($event_params['event_id']) {
-                       $r = Event::getListById(local_user(), $event_params['event-id']);
+                       $r = Event::getListById(local_user(), $event_params['event_id']);
                } else {
                        $r = Event::getListByDate(local_user(), $event_params);
                }
@@ -370,7 +370,7 @@ function events_content(App $a) {
                }
 
                if (x($_GET, 'id')) {
-                       $tpl =  get_markup_template("event.tpl");
+                       $tpl = get_markup_template("event.tpl");
                } else {
                        $tpl = get_markup_template("events_js.tpl");
                }
index 978dce7cf67758ec83b4cebc42bcc0407bfb17bf..87c8b239bfc9d25313aefe556a892d8450a9bc4f 100644 (file)
@@ -504,6 +504,7 @@ class Event extends BaseObject
                }
 
                // Query for the event by date.
+               // @todo Slow query (518 seconds to run), to be optimzed
                $r = q("SELECT `event`.*, `item`.`id` AS `itemid`,`item`.`plink`,
                                        `item`.`author-name`, `item`.`author-avatar`, `item`.`author-link` FROM `event`
                                LEFT JOIN `item` ON `item`.`event-id` = `event`.`id` AND `item`.`uid` = `event`.`uid`