]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
NoAcctUriException->profile not $e directly
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 17 Feb 2016 23:13:59 +0000 (00:13 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 17 Feb 2016 23:13:59 +0000 (00:13 +0100)
lib/toselector.php

index f29451ad9372eb0049f74b2343e2bb4259fb4b6b..a295dcd8ab8ef5e6d50a751854f26ce937862d59 100644 (file)
@@ -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();
             }
         }