X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fevent.php;h=73e61f25cf3949a20585aafc9dff55a172be6da2;hb=4011f244d6ca0f0e50241dfaae7aa6e0425e66fd;hp=1f08da5fbed0614f249a9204be725ba327839321;hpb=6a8a36f12d00f35004fbb034972ca87dd1a3c4f5;p=friendica.git
diff --git a/include/event.php b/include/event.php
index 1f08da5fbe..73e61f25cf 100644
--- a/include/event.php
+++ b/include/event.php
@@ -206,7 +206,7 @@ function bbtoevent($s) {
}
-function sort_by_date($a) {
+function sort_by_date(App &$a) {
usort($a,'ev_compare');
return $a;
@@ -312,7 +312,7 @@ function event_store($arr) {
intval($arr['id']),
intval($arr['uid'])
);
- if(dbm::is_result($r)) {
+ if (dbm::is_result($r)) {
$object = '' . "\n";
@@ -365,7 +365,7 @@ function event_store($arr) {
dbesc($arr['uri']),
intval($arr['uid'])
);
- if(dbm::is_result($r))
+ if (dbm::is_result($r))
$event = $r[0];
$item_arr = array();
@@ -407,8 +407,8 @@ function event_store($arr) {
$r = q("SELECT * FROM `user` WHERE `uid` = %d LIMIT 1",
intval($arr['uid'])
);
- //if(dbm::is_result($r))
- // $plink = $a->get_baseurl() . '/display/' . $r[0]['nickname'] . '/' . $item_id;
+ //if (dbm::is_result($r))
+ // $plink = App::get_baseurl() . '/display/' . $r[0]['nickname'] . '/' . $item_id;
if($item_id) {
@@ -515,7 +515,7 @@ function event_by_id($owner_uid = 0, $event_params, $sql_extra = '') {
intval($event_params["event_id"])
);
- if(dbm::is_result($r))
+ if (dbm::is_result($r))
return $r;
}
@@ -557,7 +557,7 @@ function events_by_date($owner_uid = 0, $event_params, $sql_extra = '') {
dbesc($event_params["adjust_finish"])
);
- if(dbm::is_result($r))
+ if (dbm::is_result($r))
return $r;
}
@@ -590,7 +590,7 @@ function process_events ($arr) {
$is_first = ($d !== $last_date);
$last_date = $d;
- $edit = ((! $rr['cid']) ? array($a->get_baseurl().'/events/event/'.$rr['id'],t('Edit event'),'','') : null);
+ $edit = ((! $rr['cid']) ? array(App::get_baseurl().'/events/event/'.$rr['id'],t('Edit event'),'','') : null);
$title = strip_tags(html_entity_decode(bbcode($rr['summary']),ENT_QUOTES,'UTF-8'));
if(! $title) {
list($title, $_trash) = explode("