]> git.mxchange.org Git - friendica.git/blobdiff - mod/parse_url.php
Log function
[friendica.git] / mod / parse_url.php
index f35c584feb3bf66a623c72efb4d7fae4ae9596dc..a1bacb0d8f775b5441d8b9052c8c6c4443ced6b6 100644 (file)
@@ -11,6 +11,7 @@
  */
 use Friendica\App;
 use Friendica\Core\Addon;
+use Friendica\Core\Logger;
 use Friendica\Util\Network;
 use Friendica\Util\ParseUrl;
 
@@ -54,7 +55,7 @@ function parse_url_content(App $a)
                }
        }
 
-       logger($url);
+       Logger::log($url);
 
        // Check if the URL is an image, video or audio file. If so format
        // the URL with the corresponding BBCode media tag
@@ -114,7 +115,7 @@ function parse_url_content(App $a)
 
                $result = sprintf($template, $url, ($title) ? $title : $url, $text) . $str_tags;
 
-               logger('(unparsed): returns: ' . $result);
+               Logger::log('(unparsed): returns: ' . $result);
 
                echo $result;
                exit();