]> git.mxchange.org Git - friendica.git/blobdiff - include/event.php
Move App to src
[friendica.git] / include / event.php
index 75fc3cf732ded5f60cfb45cd3605c42de75b8fa3..afb8ea755bc8bc04649a4802c08005ac7a6dd3a4 100644 (file)
@@ -4,13 +4,15 @@
  * @brief functions specific to event handling
  */
 
+use Friendica\App;
+
 require_once 'include/bbcode.php';
 require_once 'include/map.php';
 require_once 'include/datetime.php';
 
 function format_event_html($ev, $simple = false) {
 
-       if (! ((is_array($ev)) && count($ev)))
+       if (! ((is_array($ev)) && count($ev))) {
                return '';
        }
 
@@ -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) {