1
0
mirror of https://github.com/e107inc/e107.git synced 2025-02-22 07:47:10 +01:00
php-e107/e107_handlers/avatar_handler.php

31 lines
496 B
PHP
Raw Normal View History

2006-12-02 04:36:16 +00:00
<?php
/**
2009-11-17 10:46:35 +00:00
* e107 website system
*
2009-11-18 01:06:08 +00:00
* Copyright (C) 2008-2009 e107 Inc (e107.org)
2009-11-17 10:46:35 +00:00
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
*
2011-07-01 12:30:18 +00:00
* $URL$
* $Id$
* @DEPRECATED FILE
2009-11-17 10:46:35 +00:00
*/
2008-12-10 16:37:17 +00:00
if (!defined('e107_INIT'))
{
exit;
}
/**
* @DEPRECATED
* Use e107::getParser()->toAvatar() instead.
*/
2008-12-10 16:37:17 +00:00
function avatar($avatar)
{
2017-01-02 14:08:34 -08:00
$data = array('user_image' => $avatar);
return e107::getParser()->toAvatar($data, array('type'=>'url'));
2006-12-02 04:36:16 +00:00
}
2008-12-10 16:37:17 +00:00