diff options
author | Brion Vibber <brion@pobox.com> | 2010-03-30 11:44:13 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-03-30 11:44:13 -0700 |
commit | 0fa894be9de4d79499da389965f628c020bb8c8b (patch) | |
tree | beaf14e9b3d74e62d303436d6c4bca136d0b989c /actions/apigrouplist.php | |
parent | ca897ef346ef54952900879c3c845910bc5f54cb (diff) |
Fixes for apigrouplist - notice spew from undefined var, notice spew from missing escape in sprintf format
Diffstat (limited to 'actions/apigrouplist.php')
-rw-r--r-- | actions/apigrouplist.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/apigrouplist.php b/actions/apigrouplist.php index 98fdb0497..a6f5d03cc 100644 --- a/actions/apigrouplist.php +++ b/actions/apigrouplist.php @@ -66,7 +66,7 @@ class ApiGroupListAction extends ApiBareAuthAction { parent::prepare($args); - $this->user = $this->getTargetUser($id); + $this->user = $this->getTargetUser(null); $this->groups = $this->getGroups(); return true; @@ -100,7 +100,7 @@ class ApiGroupListAction extends ApiBareAuthAction array('nickname' => $this->user->nickname) ); $subtitle = sprintf( - _("Groups %1$s is a member of on %2$s."), + _("Groups %1\$s is a member of on %2\$s."), $this->user->nickname, $sitename ); |