diff --git a/src/aphront/response/AphrontRedirectResponse.php b/src/aphront/response/AphrontRedirectResponse.php --- a/src/aphront/response/AphrontRedirectResponse.php +++ b/src/aphront/response/AphrontRedirectResponse.php @@ -41,16 +41,17 @@ public function buildResponseString() { if ($this->shouldStopForDebugging()) { - $user = new PhabricatorUser(); + $request = $this->getRequest(); + $viewer = $request->getUser(); $view = new PhabricatorStandardPageView(); $view->setRequest($this->getRequest()); - $view->setApplicationName('Debug'); - $view->setTitle('Stopped on Redirect'); + $view->setApplicationName(pht('Debug')); + $view->setTitle(pht('Stopped on Redirect')); $dialog = new AphrontDialogView(); - $dialog->setUser($user); - $dialog->setTitle('Stopped on Redirect'); + $dialog->setUser($viewer); + $dialog->setTitle(pht('Stopped on Redirect')); $dialog->appendParagraph( pht( @@ -68,7 +69,7 @@ $dialog->appendChild( id(new AphrontStackTraceView()) - ->setUser($user) + ->setUser($viewer) ->setTrace($this->stackWhenCreated)); $dialog->setIsStandalone(true);