From 66170c339bbcd8b87e23c47daa11359a99e0d02d Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 4 Dec 2014 07:52:03 +0100 Subject: Single file editing --- src/phorkie/Repository.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/phorkie/Repository.php') diff --git a/src/phorkie/Repository.php b/src/phorkie/Repository.php index 9de2e1a..467456b 100644 --- a/src/phorkie/Repository.php +++ b/src/phorkie/Repository.php @@ -321,6 +321,9 @@ class Repository { if ($type == 'edit') { $link = $this->id . '/edit'; + if ($option !== null) { + $link .= '/' . urlencode($option); + } } else if ($type == 'display') { $link = $this->id; } else if ($type == 'fork') { -- cgit v1.2.3