Set viewer for all handles loaded in controllers

Summary:
I've replaced all `id(new PhabricatorObjectHandleData(...))->loadHandles()` by `$this->loadViewerHandles(...)`.
Lint caught one usage in a static method.

Test Plan: Displayed revision with sporadic author.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D3432
This commit is contained in:
vrana
2012-09-04 19:02:56 -07:00
parent efd59322f2
commit 8ff52c0b6c
65 changed files with 91 additions and 139 deletions

View File

@@ -84,8 +84,7 @@ final class PhameBlogViewController
$blogger_phids = $this->getBloggerPHIDs();
if ($blogger_phids) {
$bloggers = id(new PhabricatorObjectHandleData($blogger_phids))
->loadHandles();
$bloggers = $this->loadViewerHandles($blogger_phids);
} else {
$bloggers = array();
}