X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FWikiHowProfile%2FWikiHowProfilePlugin.php;h=9d8daf8adb26996c9172628272bc6283fa91a546;hb=9919ccb8b5a33ceb712d0a107af8753dfcea3bee;hp=3532ca598783c9f384d828f1bd0b69e1fd34c93f;hpb=f79aec36feaa4760201a7e88d5b31513a3c458ba;p=quix0rs-gnu-social.git diff --git a/plugins/WikiHowProfile/WikiHowProfilePlugin.php b/plugins/WikiHowProfile/WikiHowProfilePlugin.php index 3532ca5987..9d8daf8adb 100644 --- a/plugins/WikiHowProfile/WikiHowProfilePlugin.php +++ b/plugins/WikiHowProfile/WikiHowProfilePlugin.php @@ -49,12 +49,12 @@ 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', + 'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/Sample', 'rawdescription' => // TRANS: Plugin description. _m('Fetches avatar and other profile information for WikiHow users when setting up an account via OpenID.')); @@ -188,9 +188,7 @@ class WikiHowProfilePlugin extends Plugin $profile = $user->getProfile(); $id = $profile->id; - // @fixme should we be using different ids? - - $imagefile = new ImageFile($id, $temp_filename); + $imagefile = new ImageFile(null, $temp_filename); $filename = Avatar::filename($id, image_type_to_extension($imagefile->type), null,