mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR Stop using FormResponse, which has been removed from core
This commit is contained in:
parent
0633c10075
commit
04a195b111
@ -445,8 +445,8 @@ JS
|
||||
*/
|
||||
public function doSync() {
|
||||
$message = Filesystem::sync();
|
||||
FormResponse::status_message($message, 'good');
|
||||
echo FormResponse::respond();
|
||||
$this->response->addHeader('X-Status', $message);
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -474,8 +474,8 @@ JS
|
||||
}
|
||||
|
||||
$message = sprintf(_t('AssetAdmin.THUMBSDELETED', '%s unused thumbnails have been deleted'), $count);
|
||||
FormResponse::status_message($message, 'good');
|
||||
echo FormResponse::respond();
|
||||
$this->response->addHeader('X-Status', $message);
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -94,8 +94,8 @@ class ReportAdmin extends LeftAndMain implements PermissionProvider {
|
||||
}
|
||||
|
||||
public function updatereport() {
|
||||
FormResponse::load_form($this->EditForm()->forTemplate());
|
||||
return FormResponse::respond();
|
||||
// FormResponse::load_form($this->EditForm()->forTemplate());
|
||||
// return FormResponse::respond();
|
||||
}
|
||||
|
||||
function providePermissions() {
|
||||
|
@ -209,9 +209,8 @@ class ErrorPage extends Page {
|
||||
),
|
||||
$errorFile
|
||||
);
|
||||
FormResponse::status_message($fileErrorText, 'bad');
|
||||
FormResponse::respond();
|
||||
return;
|
||||
$this->response->addHeader('X-Status', $fileErrorText);
|
||||
return $this->httpError(405);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user