mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-02 17:14:38 +02:00
Formats: Remove display & related method (#2776)
Format should not be responsible for sending HTTP response.
This commit is contained in:
parent
e85932b1a5
commit
fb501652d5
13 changed files with 11 additions and 178 deletions
|
@ -150,14 +150,6 @@ EOD;
|
|||
return $toReturn;
|
||||
}
|
||||
|
||||
public function display(){
|
||||
$this
|
||||
->setContentType(self::MIME_TYPE . '; charset=' . $this->getCharset())
|
||||
->callContentType();
|
||||
|
||||
return parent::display();
|
||||
}
|
||||
|
||||
private function xml_encode($text){
|
||||
return htmlspecialchars($text, ENT_XML1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue