mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-02 09:04:44 +02:00
refactor: less reliance on super globals (#4228)
This commit is contained in:
parent
4a3919c1a3
commit
05e2c350b7
6 changed files with 23 additions and 16 deletions
|
@ -9,6 +9,9 @@ class HtmlFormat extends FormatAbstract
|
|||
// This query string is url encoded
|
||||
$queryString = $_SERVER['QUERY_STRING'];
|
||||
|
||||
// TODO: this should be the proper bridge short name and not user provided string
|
||||
$bridgeName = $_GET['bridge'];
|
||||
|
||||
$feedArray = $this->getFeed();
|
||||
$formatFactory = new FormatFactory();
|
||||
$formats = [];
|
||||
|
@ -48,6 +51,7 @@ class HtmlFormat extends FormatAbstract
|
|||
}
|
||||
|
||||
$html = render_template(__DIR__ . '/../templates/html-format.html.php', [
|
||||
'bridge_name' => $bridgeName,
|
||||
'charset' => $this->getCharset(),
|
||||
'title' => $feedArray['name'],
|
||||
'formats' => $formats,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue