1
0
mirror of https://github.com/e107inc/e107.git synced 2025-02-21 06:52:28 +01:00
php-e107/e107_handlers/avatar_handler.php

33 lines
644 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)
{
trigger_error('<b>'.__METHOD__.' is deprecated.</b> Use e107::getParser()->toAvatar() instead.', E_USER_DEPRECATED); // no LAN
2017-01-02 14:08:34 -08:00
$data = array('user_image' => $avatar);
return e107::getParser()->toAvatar($data, array('type'=>'url', 'w'=>100, 'h'=>100));
2006-12-02 04:36:16 +00:00
}
2008-12-10 16:37:17 +00:00