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() {
|
public function doSync() {
|
||||||
$message = Filesystem::sync();
|
$message = Filesystem::sync();
|
||||||
FormResponse::status_message($message, 'good');
|
$this->response->addHeader('X-Status', $message);
|
||||||
echo FormResponse::respond();
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -474,8 +474,8 @@ JS
|
|||||||
}
|
}
|
||||||
|
|
||||||
$message = sprintf(_t('AssetAdmin.THUMBSDELETED', '%s unused thumbnails have been deleted'), $count);
|
$message = sprintf(_t('AssetAdmin.THUMBSDELETED', '%s unused thumbnails have been deleted'), $count);
|
||||||
FormResponse::status_message($message, 'good');
|
$this->response->addHeader('X-Status', $message);
|
||||||
echo FormResponse::respond();
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -94,8 +94,8 @@ class ReportAdmin extends LeftAndMain implements PermissionProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function updatereport() {
|
public function updatereport() {
|
||||||
FormResponse::load_form($this->EditForm()->forTemplate());
|
// FormResponse::load_form($this->EditForm()->forTemplate());
|
||||||
return FormResponse::respond();
|
// return FormResponse::respond();
|
||||||
}
|
}
|
||||||
|
|
||||||
function providePermissions() {
|
function providePermissions() {
|
||||||
|
@ -209,9 +209,8 @@ class ErrorPage extends Page {
|
|||||||
),
|
),
|
||||||
$errorFile
|
$errorFile
|
||||||
);
|
);
|
||||||
FormResponse::status_message($fileErrorText, 'bad');
|
$this->response->addHeader('X-Status', $fileErrorText);
|
||||||
FormResponse::respond();
|
return $this->httpError(405);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user