views: fix base url to omit scheme for when we connect through a https gateway
[pharext/pharext.org] / app / views / modal / hook.phtml
index 6a6df0d215bb04c47eb6a80831a8747461ce9c7f..68bb5edb77dd743f6673b5c88cf22aa86dde1b53 100644 (file)
       </div>
       <div class="modal-footer">
                <?php if ($action === "add") : ?>
-               <form method="post" action="<?= $baseUrl->mod("./github/repo/". $repo->full_name ."/hook/add") ?>"> 
+               <form method="post" action="<?= $baseUrl->mod(":./github/repo/". $repo->full_name ."/hook/add") ?>">
                <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
                        <button type="submit" class="btn btn-primary">Enable Hook</button>
                </form>
                <?php elseif ($action === "del") : ?>
-               <form method="post" action="<?= $baseUrl->mod("./github/repo/". $repo->full_name ."/hook/del") ?>"> 
+               <form method="post" action="<?= $baseUrl->mod(":./github/repo/". $repo->full_name ."/hook/del") ?>">
                <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
                        <button type="submit" class="btn btn-primary">Disable Hook</button>
                </form>