mirror of
https://github.com/friendica/friendica
synced 2025-05-03 12:24:10 +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
|
@ -9,6 +9,7 @@ use DOMDocument;
|
|||
use DOMXPath;
|
||||
use Friendica\Content\OEmbed;
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Object\Image;
|
||||
|
||||
|
@ -123,7 +124,7 @@ class ParseUrl
|
|||
}
|
||||
|
||||
if ($count > 10) {
|
||||
logger('Endless loop detected for ' . $url, LOGGER_DEBUG);
|
||||
Logger::log('Endless loop detected for ' . $url, LOGGER_DEBUG);
|
||||
return $siteinfo;
|
||||
}
|
||||
|
||||
|
@ -187,7 +188,7 @@ class ParseUrl
|
|||
}
|
||||
|
||||
if (($charset != '') && (strtoupper($charset) != 'UTF-8')) {
|
||||
logger('detected charset ' . $charset, LOGGER_DEBUG);
|
||||
Logger::log('detected charset ' . $charset, LOGGER_DEBUG);
|
||||
$body = iconv($charset, 'UTF-8//TRANSLIT', $body);
|
||||
}
|
||||
|
||||
|
@ -421,7 +422,7 @@ class ParseUrl
|
|||
}
|
||||
}
|
||||
|
||||
logger('Siteinfo for ' . $url . ' ' . print_r($siteinfo, true), LOGGER_DEBUG);
|
||||
Logger::log('Siteinfo for ' . $url . ' ' . print_r($siteinfo, true), LOGGER_DEBUG);
|
||||
|
||||
Addon::callHooks('getsiteinfo', $siteinfo);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue