new design concurs
This commit is contained in:
@@ -29,7 +29,18 @@ $posts = get_posts( array(
|
||||
|
||||
if( $posts ){
|
||||
|
||||
include('views/rss/yanews.php');
|
||||
|
||||
ob_start();
|
||||
include('views/rss/yanews.php');
|
||||
$result = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
$result = trim($result);
|
||||
|
||||
if ($result !== ''){
|
||||
file_put_contents('/vhosts/beta/rss/yanews.xml', trim($result));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user