Make celerity be able to render full uris

Summary: ...and use 'em in the phame blog case.

Test Plan: viewed blog.phabricator.dev and it actually looked right!

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Maniphest Tasks: T1373

Differential Revision: https://secure.phabricator.com/D3666
This commit is contained in:
Bob Trahan
2012-10-09 09:31:20 -07:00
parent 9adfd11ed7
commit ce1a585166
2 changed files with 29 additions and 6 deletions

View File

@@ -160,8 +160,8 @@ abstract class AphrontApplicationConfiguration {
$path = '/phame/posts/'.trim($path, '/').'/';
}
// TODO - now we need to tell Celerity to render static resources with
// full URIs like secure.phabricator.org/rsrc/blahblah
$celerity = CelerityAPI::getStaticResourceResponse();
$celerity->setUseFullURI(true);
}
list($controller, $uri_data) = $this->buildControllerForPath($path);