diff options
| author | Colin Guthrie <colin.guthrie@tribalogic.net> | 2013-04-19 13:28:19 +0100 |
|---|---|---|
| committer | Colin Guthrie <colin.guthrie@tribalogic.net> | 2013-04-21 19:57:43 +0100 |
| commit | 20ca4e9e509a111f8de0069feeac54e3b31098ee (patch) | |
| tree | cd1a27410c2fc470d270cf79cab021781d1931aa /src/phorkie/File.php | |
| parent | ba158e3ed03dec10e6654b0b0dd3710504bdf04d (diff) | |
| download | phorkie-20ca4e9e509a111f8de0069feeac54e3b31098ee.tar.gz phorkie-20ca4e9e509a111f8de0069feeac54e3b31098ee.zip | |
Allow usage in a subdir of a host.
Diffstat (limited to 'src/phorkie/File.php')
| -rw-r--r-- | src/phorkie/File.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/phorkie/File.php b/src/phorkie/File.php index db773df..63d23e6 100644 --- a/src/phorkie/File.php +++ b/src/phorkie/File.php @@ -106,13 +106,13 @@ class File { if ($type == 'raw') { if ($this->repo->hash === null) { - return '/' . $this->repo->id . '/raw/' . $this->getFilename(); + return $this->repo->id . '/raw/' . $this->getFilename(); } else { - return '/' . $this->repo->id . '/rev-raw/' . $this->repo->hash + return $this->repo->id . '/rev-raw/' . $this->repo->hash . '/' . $this->getFilename(); } } else if ($type == 'tool') { - return '/' . $this->repo->id + return $this->repo->id . '/tool/' . $option . '/' . $this->getFilename(); } |
