* update L10n
* remove superfluous whitespace
This commit is contained in:
parent
03e600b797
commit
09c99461e5
@ -47,7 +47,6 @@ if (!defined('STATUSNET')) {
|
||||
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
|
||||
* @link http://status.net/
|
||||
*/
|
||||
|
||||
class WikiHowProfilePlugin extends Plugin
|
||||
{
|
||||
function onPluginVersion(&$versions)
|
||||
@ -57,7 +56,7 @@ class WikiHowProfilePlugin extends Plugin
|
||||
'author' => 'Brion Vibber',
|
||||
'homepage' => 'http://status.net/wiki/Plugin:Sample',
|
||||
'rawdescription' =>
|
||||
_m('Fetches avatar and other profile info for WikiHow users when setting up an account via OpenID.'));
|
||||
_m('Fetches avatar and other profile information for WikiHow users when setting up an account via OpenID.'));
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -169,14 +168,14 @@ class WikiHowProfilePlugin extends Plugin
|
||||
private function saveAvatar($user, $url)
|
||||
{
|
||||
if (!common_valid_http_url($url)) {
|
||||
throw new ServerException(sprintf(_m("Invalid avatar URL %s"), $url));
|
||||
throw new ServerException(sprintf(_m("Invalid avatar URL %s."), $url));
|
||||
}
|
||||
|
||||
// @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');
|
||||
if (!copy($url, $temp_filename)) {
|
||||
throw new ServerException(sprintf(_m("Unable to fetch avatar from %s"), $url));
|
||||
throw new ServerException(sprintf(_m("Unable to fetch avatar from %s."), $url));
|
||||
}
|
||||
|
||||
$profile = $user->getProfile();
|
||||
@ -191,6 +190,4 @@ class WikiHowProfilePlugin extends Plugin
|
||||
rename($temp_filename, Avatar::path($filename));
|
||||
$profile->setOriginal($filename);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user