aboutsummaryrefslogtreecommitdiff
path: root/formats/HtmlFormat.php
diff options
context:
space:
mode:
authorGravatar Jan Tojnar <jtojnar@gmail.com> 2022-06-07 18:05:33 +0200
committerGravatar GitHub <noreply@github.com> 2022-06-07 18:05:33 +0200
commitfb501652d5ef8519470fa1faa585b3668ebd2a34 (patch)
treea9603f0c09d6f4b710fbde1c10297330bac87ad1 /formats/HtmlFormat.php
parente85932b1a524f88db6af66d4c3aac3a7983c169b (diff)
downloadrss-bridge-fb501652d5ef8519470fa1faa585b3668ebd2a34.tar.gz
rss-bridge-fb501652d5ef8519470fa1faa585b3668ebd2a34.tar.zst
rss-bridge-fb501652d5ef8519470fa1faa585b3668ebd2a34.zip
Formats: Remove display & related method (#2776)
Format should not be responsible for sending HTTP response.
Diffstat (limited to 'formats/HtmlFormat.php')
-rw-r--r--formats/HtmlFormat.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/formats/HtmlFormat.php b/formats/HtmlFormat.php
index b9a7aba1..b3f02099 100644
--- a/formats/HtmlFormat.php
+++ b/formats/HtmlFormat.php
@@ -137,14 +137,6 @@ EOD;
return $toReturn;
}
- public function display() {
- $this
- ->setContentType(self::MIME_TYPE . '; charset=' . $this->getCharset())
- ->callContentType();
-
- return parent::display();
- }
-
private function buildButton($format, $query) {
return <<<EOD
<a href="./?{$query}"><button class="rss-feed">{$format}</button></a>