Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / diffusion / relationships / DiffusionCommitRelationship.php
blob596350f3626f15c1535ab36fba1e942a0a1d70ff
1 <?php
3 abstract class DiffusionCommitRelationship
4 extends PhabricatorObjectRelationship {
6 public function isEnabledForObject($object) {
7 $viewer = $this->getViewer();
9 $has_app = PhabricatorApplication::isClassInstalledForViewer(
10 'PhabricatorDiffusionApplication',
11 $viewer);
12 if (!$has_app) {
13 return false;
16 return ($object instanceof PhabricatorRepositoryCommit);