mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 08:42:41 +01:00
Remove code that was accidentally landed
Summary: See some discussion in D18378. Test Plan: N/A Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D18380
This commit is contained in:
parent
bd47d001b5
commit
71eaf3e8c4
1 changed files with 2 additions and 6 deletions
|
@ -854,7 +854,7 @@ final class PhabricatorFile extends PhabricatorFileDAO
|
||||||
return $this->getTransformedURI($transform->getTransformKey());
|
return $this->getTransformedURI($transform->getTransformKey());
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getTransformedURI($transform, $cdn) {
|
private function getTransformedURI($transform) {
|
||||||
$parts = array();
|
$parts = array();
|
||||||
$parts[] = 'file';
|
$parts[] = 'file';
|
||||||
$parts[] = 'xform';
|
$parts[] = 'xform';
|
||||||
|
@ -871,11 +871,7 @@ final class PhabricatorFile extends PhabricatorFileDAO
|
||||||
$path = implode('/', $parts);
|
$path = implode('/', $parts);
|
||||||
$path = $path.'/';
|
$path = $path.'/';
|
||||||
|
|
||||||
if ($cdn) {
|
|
||||||
return PhabricatorEnv::getCDNURI($path);
|
return PhabricatorEnv::getCDNURI($path);
|
||||||
} else {
|
|
||||||
return PhabricatorEnv::getURI($path);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isViewableInBrowser() {
|
public function isViewableInBrowser() {
|
||||||
|
|
Loading…
Reference in a new issue