Quellcode durchsuchen

Fixed typo and redirect.

Alan Lam vor 8 Jahren
Ursprung
Commit
a5f0172e5e
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 1 1
      controllers/location_add.php
  2. 1 1
      controllers/location_edit.php

+ 1 - 1
controllers/location_add.php

@@ -53,7 +53,7 @@ if($submit) {
 		if($form_exception->hasErrors()) throw $form_exception;
 
 		$success = $location->commit();
-		if(!$success) throw new Exception("Faileds to add location at this time. Please try again later.");
+		if(!$success) throw new Exception("Failed to add location at this time. Please try again later.");
 
 		Core::addAlert("success", "Location added successfully.");
 		HTTP::redirect("/account/locations/$location->id");

+ 1 - 1
controllers/location_edit.php

@@ -39,7 +39,7 @@ if($submit) {
 		$success = $location->commit();
 
 		Core::addAlert("success", "Location updated successfully.");
-		HTTP::redirect("/account/locations");
+		HTTP::redirect("/account/locations/$location->id");
 	}
 	catch(FormException $e) {
 		$e->generateAlerts();