From: Marcel Werk <burntime@woltlab.com>
Date: Fri, 24 Jun 2016 10:33:18 +0000 (+0200)
Subject: Removed redirect after page creation
X-Git-Tag: 3.0.0_Beta_1~1362
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=09212fc42ed13d339e43e3a2388b69b95e72137a;p=GitHub%2FWoltLab%2FWCF.git

Removed redirect after page creation
---

diff --git a/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php b/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php
index c5dcc8c852..1e2f3ff205 100644
--- a/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php
+++ b/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php
@@ -448,9 +448,11 @@ class PageAddForm extends AbstractForm {
 		// call saved event
 		$this->saved();
 		
-		// forward to page list
-		HeaderUtil::redirect(LinkHandler::getInstance()->getLink('PageList'));
-		exit;
+		// reset variables
+		$this->parentPageID = $this->isDisabled = $this->isLandingPage = 0;
+		$this->applicationPackageID = 1;
+		$this->name = '';
+		$this->customURL = $this->title = $this->content = $this->metaDescription = $this->metaKeywords = $this->boxIDs = $this->aclValues = [];
 	}
 	
 	/**