Fix RSS
This commit is contained in:
parent
24bf7067d5
commit
1514afebbe
@ -1,14 +1,16 @@
|
|||||||
<?php
|
<?php
|
||||||
define('APP_ROOT', realpath(__DIR__ . '/../../'));
|
require_once __DIR__ . '/../../bootstrap.php';
|
||||||
define('ITEMS_PER_PAGE', 25);
|
|
||||||
|
|
||||||
require APP_ROOT . '/config.php';
|
confirm_setup();
|
||||||
require_once APP_ROOT . '/stream_ticks.php';
|
|
||||||
|
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');
|
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";
|
echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
|
||||||
?>
|
?>
|
||||||
<rss version="2.0">
|
<rss version="2.0">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user