aboutsummaryrefslogtreecommitdiff
path: root/src/phorkie/Repository.php
diff options
context:
space:
mode:
authorColin Guthrie <colin.guthrie@tribalogic.net>2013-04-19 13:28:19 +0100
committerColin Guthrie <colin.guthrie@tribalogic.net>2013-04-21 19:57:43 +0100
commit20ca4e9e509a111f8de0069feeac54e3b31098ee (patch)
treecd1a27410c2fc470d270cf79cab021781d1931aa /src/phorkie/Repository.php
parentba158e3ed03dec10e6654b0b0dd3710504bdf04d (diff)
downloadphorkie-20ca4e9e509a111f8de0069feeac54e3b31098ee.tar.gz
phorkie-20ca4e9e509a111f8de0069feeac54e3b31098ee.zip
Allow usage in a subdir of a host.
Diffstat (limited to 'src/phorkie/Repository.php')
-rw-r--r--src/phorkie/Repository.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/phorkie/Repository.php b/src/phorkie/Repository.php
index 6b7435c..815ef5e 100644
--- a/src/phorkie/Repository.php
+++ b/src/phorkie/Repository.php
@@ -274,19 +274,19 @@ class Repository
public function getLink($type, $option = null, $full = false)
{
if ($type == 'edit') {
- $link = '/' . $this->id . '/edit';
+ $link = $this->id . '/edit';
} else if ($type == 'display') {
- $link = '/' . $this->id;
+ $link = $this->id;
} else if ($type == 'fork') {
- $link = '/' . $this->id . '/fork';
+ $link = $this->id . '/fork';
} else if ($type == 'doap') {
- $link = '/' . $this->id . '/doap';
+ $link = $this->id . '/doap';
} else if ($type == 'delete') {
- $link = '/' . $this->id . '/delete';
+ $link = $this->id . '/delete';
} else if ($type == 'delete-confirm') {
- $link = '/' . $this->id . '/delete/confirm';
+ $link = $this->id . '/delete/confirm';
} else if ($type == 'revision') {
- $link = '/' . $this->id . '/rev/' . $option;
+ $link = $this->id . '/rev/' . $option;
} else {
throw new Exception('Unknown link type');
}