]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Bad constant (LOG_WARNING, not LOG_WARN)
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 10 Jul 2017 12:50:25 +0000 (14:50 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 10 Jul 2017 12:50:25 +0000 (14:50 +0200)
plugins/Oembed/OembedPlugin.php

index 57ff3f467c9b0054587a047fe06b27ab485be48f..06e76404bc54065f1104b29c3e28b844d5cf63c7 100644 (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 {