[feladat @ 120]
authorpeter
Mon, 11 Feb 2008 18:42:04 +0000
changeset 73 8a239565e9b3
parent 72 a5cf0384e9b4
child 74 43c31dc98305
[feladat @ 120] Fixed a bug reported by Techwolf. When editing or deleting an user the user was redirected to a non existing page. This probably happened when BASE_URL and/or BASE_PATH was set wrong in the config.inc.php.
delete_user.php
edit_user.php
--- a/delete_user.php	Sun Feb 03 16:50:06 2008 +0000
+++ b/delete_user.php	Mon Feb 11 18:42:04 2008 +0000
@@ -49,7 +49,7 @@
 		}
 		
                 delete_user($id);
-                clean_page($BASE_URL . $BASE_PATH . "users.php");
+                clean_page("users.php");
         }
         include_once("inc/header.inc.php");
         ?>
--- a/edit_user.php	Sun Feb 03 16:50:06 2008 +0000
+++ b/edit_user.php	Mon Feb 11 18:42:04 2008 +0000
@@ -35,7 +35,7 @@
 		}
 		if(edit_user($_POST["number"], $_POST["username"], $_POST["fullname"], $_POST["email"], $_POST["level"], $_POST["description"], $active, $_POST["password"]))
 		{
-			clean_page($BASE_URL . $BASE_PATH . "users.php");
+			clean_page("users.php");
 		}
 		else
 		{