Skip to content

Commit fdfbc6e

Browse files
committed
Fixed issue #2347: RSS feed on xdebug.org is empty
1 parent cc68c27 commit fdfbc6e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

html/rss.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
require_once(__DIR__ . '/../vendor/autoload.php');
44

55
/* Find files */
6-
$d = glob( "../data/news/*txt" );
6+
$d = glob( "../data/news/*html" );
77
sort($d);
88
$d = array_reverse( $d );
99

10-
$latest = preg_replace( '@^../data/news/(.*).txt$@', '\1', (string) $d[0] );
10+
$latest = preg_replace( '@^../data/news/(.*).html$@', '\1', (string) $d[0] );
1111

1212

1313
$feed = new ezcFeed();
@@ -22,7 +22,7 @@
2222

2323
foreach ( $d as $item )
2424
{
25-
$date = preg_replace( '@^../data/news/(.*).txt$@', '\1', (string) $item );
25+
$date = preg_replace( '@^../data/news/(.*).html$@', '\1', (string) $item );
2626
$file = file( $item );
2727
$title = array_shift( $file );
2828

0 commit comments

Comments
 (0)