We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc68c27 commit fdfbc6eCopy full SHA for fdfbc6e
html/rss.php
@@ -3,11 +3,11 @@
3
require_once(__DIR__ . '/../vendor/autoload.php');
4
5
/* Find files */
6
-$d = glob( "../data/news/*txt" );
+$d = glob( "../data/news/*html" );
7
sort($d);
8
$d = array_reverse( $d );
9
10
-$latest = preg_replace( '@^../data/news/(.*).txt$@', '\1', (string) $d[0] );
+$latest = preg_replace( '@^../data/news/(.*).html$@', '\1', (string) $d[0] );
11
12
13
$feed = new ezcFeed();
@@ -22,7 +22,7 @@
22
23
foreach ( $d as $item )
24
{
25
- $date = preg_replace( '@^../data/news/(.*).txt$@', '\1', (string) $item );
+ $date = preg_replace( '@^../data/news/(.*).html$@', '\1', (string) $item );
26
$file = file( $item );
27
$title = array_shift( $file );
28
0 commit comments