X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FGNUsocialProfileExtensions%2Factions%2Fbio.php;h=fc49003cb46ef8e6de867c747206046dc4d8eba9;hb=b017675976840cb3622eb801af3dbc7caa93e605;hp=6cfded4e36d2dd0dd158301c1b1c2ca9a829c6d0;hpb=b0899bd940adcf89eb4f6500d88c9e9ca1495a49;p=quix0rs-gnu-social.git diff --git a/plugins/GNUsocialProfileExtensions/actions/bio.php b/plugins/GNUsocialProfileExtensions/actions/bio.php index 6cfded4e36..fc49003cb4 100644 --- a/plugins/GNUsocialProfileExtensions/actions/bio.php +++ b/plugins/GNUsocialProfileExtensions/actions/bio.php @@ -22,7 +22,7 @@ * @category Widget * @package GNU Social * @author Max Shinn - * @copyright 2010 Free Software Foundation, Inc. + * @copyright 2011 Free Software Foundation, Inc. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 */ @@ -38,21 +38,20 @@ class BioAction extends Action { var $user = null; - function prepare($args) + function prepare(array $args=array()) { parent::prepare($args); $args = $this->returnToArgs(); - $this->profile = Profile::staticGet('nickname', $args[1]['nickname']); + $this->profile = Profile::getKV('nickname', $args[1]['nickname']); //die(print_r($this->profile)); gnusocial_profile_merge($this->profile); - $this->avatar = $this->profile->getAvatar(96); return true; } - function handle($args) + function handle(array $args=array()) { parent::handle($args); $this->showPage(); @@ -101,3 +100,5 @@ class BioAction extends Action } } + +