Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phame/storage/PhameBlog.php
Show First 20 Lines • Show All 163 Lines • ▼ Show 20 Lines | if (!PhabricatorEnv::getEnvConfig('policy.allow-public')) { | ||||
array('href' => $href), | array('href' => $href), | ||||
pht('here'))); | pht('here'))); | ||||
} | } | ||||
return null; | return null; | ||||
} | } | ||||
public function getLiveURI() { | public function getLiveURI() { | ||||
if (strlen($this->getDomain())) { | if ($this->getDomain() !== null && strlen($this->getDomain())) { | ||||
return $this->getExternalLiveURI(); | return $this->getExternalLiveURI(); | ||||
} else { | } else { | ||||
return $this->getInternalLiveURI(); | return $this->getInternalLiveURI(); | ||||
} | } | ||||
} | } | ||||
public function getExternalLiveURI() { | public function getExternalLiveURI() { | ||||
$uri = new PhutilURI($this->getDomainFullURI()); | $uri = new PhutilURI($this->getDomainFullURI()); | ||||
▲ Show 20 Lines • Show All 217 Lines • Show Last 20 Lines |