Bad constant (LOG_WARNING, not LOG_WARN)

This commit is contained in:
Mikael Nordfeldth 2017-07-10 14:50:25 +02:00
parent 4ba7c4a021
commit c9cfda5ef2
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ class OembedPlugin extends Plugin
common_debug(__METHOD__ . ': '.sprintf('Performing HEAD request for remote file id==%u to avoid unnecessarily downloading too large files. URL: %s', $thumbnail->getFileId(), $remoteUrl));
$head = $http->head($remoteUrl);
if (!$head->isOk()) {
common_log(LOG_WARN, 'HEAD request returned HTTP failure, so we will abort now and delete the thumbnail object.');
common_log(LOG_WARNING, 'HEAD request returned HTTP failure, so we will abort now and delete the thumbnail object.');
$thumbnail->delete();
return false;
} else {