X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FWikiHowProfile%2FWikiHowProfilePlugin.php;h=8c2327b385a6611e89957df538923a91794d4714;hb=261ccfac8699534ff584a2f93d5dcd384529d855;hp=3532ca598783c9f384d828f1bd0b69e1fd34c93f;hpb=d594c83a5a9a9d42fce917b544c28591fcadb1aa;p=quix0rs-gnu-social.git diff --git a/plugins/WikiHowProfile/WikiHowProfilePlugin.php b/plugins/WikiHowProfile/WikiHowProfilePlugin.php index 3532ca5987..8c2327b385 100644 --- a/plugins/WikiHowProfile/WikiHowProfilePlugin.php +++ b/plugins/WikiHowProfile/WikiHowProfilePlugin.php @@ -49,10 +49,10 @@ if (!defined('STATUSNET')) { */ class WikiHowProfilePlugin extends Plugin { - function onPluginVersion(&$versions) + function onPluginVersion(array &$versions) { $versions[] = array('name' => 'WikiHow avatar fetcher', - 'version' => STATUSNET_VERSION, + 'version' => GNUSOCIAL_VERSION, 'author' => 'Brion Vibber', 'homepage' => 'http://status.net/wiki/Plugin:Sample', 'rawdescription' => @@ -154,7 +154,7 @@ class WikiHowProfilePlugin extends Plugin $absolute = $base->resolve($src); $avatarUrl = strval($absolute); - common_log(LOG_DEBUG, "WikiHow avatar found for $profileUrl - $avatarUrl"); + common_debug("WikiHow avatar found for $profileUrl - $avatarUrl"); $data['avatar'] = $avatarUrl; } @@ -178,7 +178,7 @@ class WikiHowProfilePlugin extends Plugin // @todo FIXME: This should be better encapsulated // ripped from OStatus via oauthstore.php (for old OMB client) - $temp_filename = tempnam(sys_get_temp_dir(), 'listener_avatar'); + $temp_filename = tempnam(common_get_temp_dir(), 'listener_avatar'); try { if (!copy($url, $temp_filename)) { // TRANS: Exception thrown when fetching an avatar from a URL fails.