MINOR Stop using FormResponse, which has been removed from core

This commit is contained in:
Ingo Schommer 2012-03-09 23:20:09 +01:00
parent 0633c10075
commit 04a195b111
3 changed files with 8 additions and 9 deletions

View File

@ -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;
} }
/** /**

View File

@ -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() {

View File

@ -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;
} }
} }