From c1ee813ffaa0bdf2906c5e8e7d870847e7f0d454 Mon Sep 17 00:00:00 2001
From: Graham Cole <chckens@sucs.org>
Date: Wed, 9 Apr 2008 18:09:47 +0000
Subject: [PATCH] I did something stupid here, though it still worked in most
 cases. Here's what I actually meant

---
 templates/options.tpl | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/templates/options.tpl b/templates/options.tpl
index 766b686..caa12e8 100644
--- a/templates/options.tpl
+++ b/templates/options.tpl
@@ -3,7 +3,7 @@
 <div class="box" >
 <div class="boxhead"><h2>User Settings</h2></div>
 <div class="boxcontent">
-<form class="admin" action="{$path}" method="POST">
+<form class="admin" action="{$baseurl}{$path}" method="POST">
 	
 	<fieldset>
 	<legend> System Details </legend>
@@ -40,7 +40,7 @@
 		<span class="textinput" id="hackergotchi">
 {if $hackergotchi}
 			<img src="{$baseurl}/pictures/people/{$session->username}.png" />
-	<form action="{$self}" method="post">
+	<form action="{$baseurl}{$path}" method="post">
 		<input type="hidden" name="action" value="clearhackergotchi" />
 		<input type="submit" value="Clear Hackergotchi" />
 	</form>
@@ -53,7 +53,7 @@
 		
 	</div>
 
-	<form method="post" action="{$self}" enctype="multipart/form-data">
+	<form method="post" action="{$baseurl}{$path}" enctype="multipart/form-data">
 	<div class="row">
 		<label>Update Hackergotchi:</label>
 		<span class="textinput">
@@ -70,7 +70,7 @@
 	</form> 
 	</fieldset>
 	
-	<form method="post" action="{$self}">
+	<form method="post" action="{$baseurl}{$path}">
 	<fieldset>
 	<legend> Password </legend>
 	<input type="hidden" name="action" value="changepass" />
@@ -102,7 +102,7 @@
 	</fieldset>
 	</form>
 	
-	<form method="post" action="{$self}">
+	<form method="post" action="{$baseurl}{$path}">
 	<fieldset>
 	<legend> Contact Details </legend>
 	<input type="hidden" name="action" value="changecontact" />
@@ -131,7 +131,7 @@
 	</fieldset>
 	</form>
 
-	<form method="post" action="{$self}">
+	<form method="post" action="{$baseurl}{$path}">
 	<fieldset>
 	<legend> Room Network Configuration </legend>
 	<input type="hidden" name="action" value="changeguestnet" />
-- 
GitLab