From f009e8de8a0958f1795b562045fcf14b16ecb626 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 7 Oct 2008 16:42:25 +0000 Subject: [PATCH] API CHANGE Moved PostBackup class to module (see r63758) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63759 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- filesystem/PostBackup.php | 41 --------------------------------------- forms/Form.php | 2 -- 2 files changed, 43 deletions(-) delete mode 100644 filesystem/PostBackup.php diff --git a/filesystem/PostBackup.php b/filesystem/PostBackup.php deleted file mode 100644 index c18143f33..000000000 --- a/filesystem/PostBackup.php +++ /dev/null @@ -1,41 +0,0 @@ -stat('backup_post_data')) - return; - - // Append to the file - if(!file_exists(BACKUP_DIR)) - mkdir(BACKUP_DIR, Filesystem::$folder_create_mask, true); - - $backupFile = fopen(BACKUP_DIR . '/' . $form->class, 'a'); - - $date = date('Y-m-d G:i:s'); - - $postData = var_export($data, true); - - $backup = <<class} - -$postData -***END ENTRY*** -BAK; - - fwrite($backupFile, $backup); - fclose($backupFile); - } - -} -?> diff --git a/forms/Form.php b/forms/Form.php index 77440dc2d..8a379b619 100644 --- a/forms/Form.php +++ b/forms/Form.php @@ -23,8 +23,6 @@ */ class Form extends RequestHandlingData { - public static $backup_post_data = false; - /** * Accessed by Form.ss; modified by formHtmlContent. * A performance enhancement over the generate-the-form-tag-and-then-remove-it code that was there previously