Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phriction/editor/PhrictionDocumentEditor.php
Show First 20 Lines • Show All 234 Lines • ▼ Show 20 Lines | if ($ancestral_slugs) { | ||||
->stub(); | ->stub(); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
$project_phid = null; | $project_phid = null; | ||||
$slug = $document->getSlug(); | $slug = $document->getSlug(); | ||||
if (PhrictionDocument::isProjectSlug($slug)) { | if (PhrictionDocument::isProjectSlug($slug)) { | ||||
$project = id(new PhabricatorProject())->loadOneWhere( | $project = id(new PhabricatorProjectQuery()) | ||||
'phrictionSlug = %s', | ->setViewer($this->requireActor()) | ||||
PhrictionDocument::getProjectSlugIdentifier($slug)); | ->withPhrictionSlugs(array( | ||||
PhrictionDocument::getProjectSlugIdentifier($slug))) | |||||
->executeOne(); | |||||
if ($project) { | if ($project) { | ||||
$project_phid = $project->getPHID(); | $project_phid = $project->getPHID(); | ||||
} | } | ||||
} | } | ||||
$related_phids = array( | $related_phids = array( | ||||
$document->getPHID(), | $document->getPHID(), | ||||
$this->getActor()->getPHID(), | $this->getActor()->getPHID(), | ||||
▲ Show 20 Lines • Show All 120 Lines • Show Last 20 Lines |