mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
parent
c49da62c23
commit
dec67ef259
1 changed files with 12 additions and 0 deletions
|
@ -33,12 +33,24 @@ class CakeHtmlReporter extends CakeBaseReporter {
|
|||
*/
|
||||
public function paintHeader() {
|
||||
$this->_headerSent = true;
|
||||
$this->sendContentType();
|
||||
$this->sendNoCacheHeaders();
|
||||
$this->paintDocumentStart();
|
||||
$this->paintTestMenu();
|
||||
echo "<ul class='tests'>\n";
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the content-type header so it is in the correct encoding.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function sendContentType() {
|
||||
if (!headers_sent()) {
|
||||
header('Content-Type: text/html; charset=' . Configure::read('App.encoding'));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Paints the document start content contained in header.php
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue