Single file editing
[phorkie.git] / src / phorkie / Repository.php
index 9de2e1ab8995b8226e0e8845d9d5eb0866019879..467456b96821e81cd919927c734f098e2212bdb0 100644 (file)
@@ -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') {