Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/configuration/AphrontApplicationConfiguration.php
| Show First 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | if ($base_uri && !$host_match) { | ||||
| try { | try { | ||||
| $blog = id(new PhameBlogQuery()) | $blog = id(new PhameBlogQuery()) | ||||
| ->setViewer(new PhabricatorUser()) | ->setViewer(new PhabricatorUser()) | ||||
| ->withDomain($host) | ->withDomain($host) | ||||
| ->executeOne(); | ->executeOne(); | ||||
| } catch (PhabricatorPolicyException $ex) { | } catch (PhabricatorPolicyException $ex) { | ||||
| throw new Exception( | throw new Exception( | ||||
| "This blog is not visible to logged out users, so it can not be ". | 'This blog is not visible to logged out users, so it can not be '. | ||||
| "visited from a custom domain."); | 'visited from a custom domain.'); | ||||
| } | } | ||||
| if (!$blog) { | if (!$blog) { | ||||
| if ($prod_uri && $prod_uri != $base_uri) { | if ($prod_uri && $prod_uri != $base_uri) { | ||||
| $prod_str = ' or '.$prod_uri; | $prod_str = ' or '.$prod_uri; | ||||
| } else { | } else { | ||||
| $prod_str = ''; | $prod_str = ''; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines | |||||