From 543d968b81b97c9ebd46de063d8d70621c12015b Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 18 Feb 2016 00:13:59 +0100 Subject: [PATCH] NoAcctUriException->profile not $e directly --- lib/toselector.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/toselector.php b/lib/toselector.php index f29451ad93..a295dcd8ab 100644 --- a/lib/toselector.php +++ b/lib/toselector.php @@ -108,7 +108,7 @@ class ToSelector extends Widget try { $choices[$value] = substr($users->getAcctUri(), 5) . " [{$users->getBestName()}]"; } catch (ProfileNoAcctUriException $e) { - $choices[$value] = "[?@?] " . $e->getBestName(); + $choices[$value] = "[?@?] " . $e->profile->getBestName(); } } @@ -118,7 +118,7 @@ class ToSelector extends Widget try { $choices[$value] = substr($this->to->getAcctUri(), 5) . " [{$this->to->getBestName()}]"; } catch (ProfileNoAcctUriException $e) { - $choices[$value] = "[?@?] " . $e->getBestName(); + $choices[$value] = "[?@?] " . $e->profile->getBestName(); } } -- 2.39.5