1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

Avoid double slash in Celerity path

Summary: Fished from logs, it probably doesn't cause any real problems.

Test Plan: Looked at logs.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D5350
This commit is contained in:
Jakub Vrana 2013-03-14 12:03:26 -07:00
parent dc7b25abed
commit daed35e36c

View file

@ -228,7 +228,7 @@ final class CelerityStaticResourceResponse {
// the map script). In production, we can assume the map script gets run
// after changes, and safely skip this.
if (PhabricatorEnv::getEnvConfig('phabricator.developer-mode')) {
$root = dirname(phutil_get_library_root('phabricator')).'/webroot/';
$root = dirname(phutil_get_library_root('phabricator')).'/webroot';
if (isset($resource['disk'])) {
$mtime = (int)filemtime($root.$resource['disk']);
} else {