mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
allow overriding built-in templates via templates.local
This commit is contained in:
@@ -31,13 +31,11 @@ class Af_Comics_Gocomics extends Af_ComicFilter {
|
||||
|
||||
$body = fetch_file_contents(array('url' => $article_link, 'type' => 'text/html', 'followlocation' => false));
|
||||
|
||||
require_once 'lib/MiniTemplator.class.php';
|
||||
|
||||
$feed_title = htmlspecialchars($comic[1]);
|
||||
$site_url = htmlspecialchars($site_url);
|
||||
$article_link = htmlspecialchars($article_link);
|
||||
|
||||
$tpl = new MiniTemplator();
|
||||
$tpl = new Templator();
|
||||
|
||||
$tpl->readTemplateFromFile('templates/generated_feed.txt');
|
||||
|
||||
|
||||
@@ -25,11 +25,10 @@ class Af_Comics_Gocomics_FarSide extends Af_ComicFilter {
|
||||
|
||||
public function on_fetch($url) {
|
||||
if (preg_match("#^https?://www\.thefarside\.com#", $url)) {
|
||||
require_once 'lib/MiniTemplator.class.php';
|
||||
|
||||
$article_link = htmlspecialchars("https://www.thefarside.com" . date('/Y/m/d'));
|
||||
|
||||
$tpl = new MiniTemplator();
|
||||
$tpl = new Templator();
|
||||
|
||||
$tpl->readTemplateFromFile('templates/generated_feed.txt');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user