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() {
$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;
}
/**

View File

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

View File

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