mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 03:25:15 +02:00
Log function
implement log() function.
This commit is contained in:
parent
d6d593d724
commit
14fde5dc9b
122 changed files with 1280 additions and 1161 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue