From 5404bc0c1b942d87f99dd8688d1e6c03922344dd Mon Sep 17 00:00:00 2001
From: Graham Cole <chckens@sucs.org>
Date: Thu, 17 Jan 2008 23:22:17 +0000
Subject: [PATCH] a few template url fixes that were sitting in my tree

---
 templates/news_delete.tpl      | 2 +-
 templates/news_edit.tpl        | 2 +-
 templates/news_expire.tpl      | 2 +-
 templates/pastebin-sidebar.tpl | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/templates/news_delete.tpl b/templates/news_delete.tpl
index bff5f7a..c68d9ed 100644
--- a/templates/news_delete.tpl
+++ b/templates/news_delete.tpl
@@ -1,4 +1,4 @@
-<form class="dialog" action="{$path}" method="post">
+<form class="dialog" action="{$baseurl}{$path}" method="post">
 <div class="box">
 <div class="boxhead"><h2>Warning</h2></div>
 <div class="boxcontent">
diff --git a/templates/news_edit.tpl b/templates/news_edit.tpl
index 5adfa4e..3fbb23c 100644
--- a/templates/news_edit.tpl
+++ b/templates/news_edit.tpl
@@ -1,7 +1,7 @@
 
 <h2>Post a news item</h2>
 
-<form class="admin" action="{$path}" method="POST">
+<form class="admin" action="{$baseurl}{$path}" method="POST">
         <div class="row">
                 <label for="edittitle">Title</label>
                 <span class="textinput"><input type="text" name="edittitle" id="edittitle" value="{$news[0].title}" style="width: 100%;" /></span>
diff --git a/templates/news_expire.tpl b/templates/news_expire.tpl
index 40adc8d..4730390 100644
--- a/templates/news_expire.tpl
+++ b/templates/news_expire.tpl
@@ -1,4 +1,4 @@
-<form class="dialog" action="{$path}" method="post">
+<form class="dialog" action="{$baseurl}{$path}" method="post">
 <div class="box">
 <div class="boxhead"><h2>Warning</h2></div>
 <div class="boxcontent">
diff --git a/templates/pastebin-sidebar.tpl b/templates/pastebin-sidebar.tpl
index 715ff71..eb65f19 100644
--- a/templates/pastebin-sidebar.tpl
+++ b/templates/pastebin-sidebar.tpl
@@ -2,7 +2,7 @@
 {if count($pasteList) > 0 }
 	<ul id="lstSidebar">
 {foreach name=pasteList from=$pasteList item=pasteItem}
-		<li><a href="{$urifragment}{$pasteItem.id}"> {$pasteItem.name} - {$pasteItem.time_diff} ago </a></li>
+		<li><a href="{$baseurl}{$urifragment}{$pasteItem.id}"> {$pasteItem.name} - {$pasteItem.time_diff} ago </a></li>
 {/foreach}
 	</ul>
 {else}
-- 
GitLab