Browse Source

Get rid of the is included which prevents the redirect.

Mark Crane 10 years ago
parent
commit
87c903d863
1 changed files with 6 additions and 7 deletions
  1. 6 7
      core/menu/menu_restore_default.php

+ 6 - 7
core/menu/menu_restore_default.php

@@ -17,7 +17,7 @@
 
 	The Initial Developer of the Original Code is
 	Mark J Crane <[email protected]>
-	Portions created by the Initial Developer are Copyright (C) 2008-2012
+	Portions created by the Initial Developer are Copyright (C) 2008-2014
 	the Initial Developer. All Rights Reserved.
 
 	Contributor(s):
@@ -62,10 +62,9 @@
 	$_SESSION["template_content"] = '';
 
 //redirect
-	if (!$included) {
-		//show a message to the user
-		$_SESSION["message"] = $text['message-restore'];
-		header("Location: ".PROJECT_PATH."/core/menu/menu_edit.php?id=".$menu_uuid);
-		return;
-	}
+	//show a message to the user
+	$_SESSION["message"] = $text['message-restore'];
+	header("Location: ".PROJECT_PATH."/core/menu/menu_edit.php?id=".$menu_uuid);
+	return;
+
 ?>