Fix RSS
This commit is contained in:
parent
24bf7067d5
commit
1514afebbe
@ -1,14 +1,16 @@
|
||||
<?php
|
||||
define('APP_ROOT', realpath(__DIR__ . '/../../'));
|
||||
define('ITEMS_PER_PAGE', 25);
|
||||
require_once __DIR__ . '/../../bootstrap.php';
|
||||
|
||||
require APP_ROOT . '/config.php';
|
||||
require_once APP_ROOT . '/stream_ticks.php';
|
||||
confirm_setup();
|
||||
|
||||
require LIB_ROOT . '/config.php';
|
||||
require_once LIB_ROOT . '/ticks.php';
|
||||
|
||||
$config = Config::load();
|
||||
$ticks = iterator_to_array(stream_ticks($config->itemsPerPage));
|
||||
|
||||
header('Content-Type: application/rss+xml; charset=utf-8');
|
||||
|
||||
$ticks = iterator_to_array(stream_ticks($tickLocation, ITEMS_PER_PAGE));
|
||||
|
||||
echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
|
||||
?>
|
||||
<rss version="2.0">
|
||||
|
Loading…
x
Reference in New Issue
Block a user