Page MenuHomePhabricator

D9511.id22793.diff
No OneTemporary

D9511.id22793.diff

diff --git a/src/infrastructure/celerity/CelerityStaticResourceResponse.php b/src/infrastructure/celerity/CelerityStaticResourceResponse.php
--- a/src/infrastructure/celerity/CelerityStaticResourceResponse.php
+++ b/src/infrastructure/celerity/CelerityStaticResourceResponse.php
@@ -283,7 +283,8 @@
public function getURI(
CelerityResourceMap $map,
- $name) {
+ $name,
+ $use_primary_domain = false) {
$uri = $map->getURIForName($name);
@@ -298,7 +299,11 @@
$uri = preg_replace('@^/res/@', '/res/'.$mtime.'T/', $uri);
}
- return PhabricatorEnv::getCDNURI($uri);
+ if ($use_primary_domain) {
+ return PhabricatorEnv::getURI($uri);
+ } else {
+ return PhabricatorEnv::getCDNURI($uri);
+ }
}
}
diff --git a/src/view/page/PhabricatorStandardPageView.php b/src/view/page/PhabricatorStandardPageView.php
--- a/src/view/page/PhabricatorStandardPageView.php
+++ b/src/view/page/PhabricatorStandardPageView.php
@@ -373,7 +373,7 @@
}
$map = CelerityResourceMap::getNamedInstance('phabricator');
- $swf_uri = $response->getURI($map, 'rsrc/swf/aphlict.swf');
+ $swf_uri = $response->getURI($map, 'rsrc/swf/aphlict.swf', true);
$enable_debug = PhabricatorEnv::getEnvConfig('notification.debug');

File Metadata

Mime Type
text/plain
Expires
Wed, Oct 16, 3:20 PM (3 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6718012
Default Alt Text
D9511.id22793.diff (1 KB)

Event Timeline