]> git.mxchange.org Git - friendica.git/blobdiff - include/event.php
Move App to src
[friendica.git] / include / event.php
index 7fffdd8a2861f9058f1a88c9cf7f6cd1385b84fd..afb8ea755bc8bc04649a4802c08005ac7a6dd3a4 100644 (file)
@@ -4,6 +4,8 @@
  * @brief functions specific to event handling
  */
 
+use Friendica\App;
+
 require_once 'include/bbcode.php';
 require_once 'include/map.php';
 require_once 'include/datetime.php';
@@ -82,6 +84,7 @@ function format_event_html($ev, $simple = false) {
 }
 
 /*
+@TODO old-lost code found?
 function parse_event($h) {
 
        require_once('include/Scrape.php');
@@ -534,7 +537,7 @@ function get_event_strings() {
  *
  * @param array $dates Array of possibly duplicated events
  * @return array Cleaned events
- * 
+ *
  * @todo We should replace this with a separate update function if there is some time left
  */
 function event_remove_duplicates($dates) {
@@ -629,7 +632,7 @@ function events_by_date($owner_uid = 0, $event_params, $sql_extra = '') {
  * @return array Event array for the template
  */
 function process_events($arr) {
-       $events = array();
+       $events=array();
 
        $last_date = '';
        $fmt = t('l, F j');