Merge pull request #700 from oddnoc/successfullyinstalled-fix

Return 410 for successfullyinstalled after install files are gone
This commit is contained in:
Ingo Schommer 2013-05-22 12:40:56 -07:00
commit 417bef9948

View File

@ -372,6 +372,10 @@ HTML;
* This action is called by the installation system
*/
public function successfullyinstalled() {
// Return 410 Gone if this site is not actually a fresh installation
if (!file_exists(BASE_PATH . '/install.php')) {
$this->httpError(410);
}
// The manifest should be built by now, so it's safe to publish the 404 page
$fourohfour = Versioned::get_one_by_stage('ErrorPage', 'Stage', '"ErrorCode" = 404');
if($fourohfour) {