mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-10 17:29:18 -04:00
Use rest::http_content_type() instead of the header() method to set response content
This commit is contained in:
@@ -48,7 +48,7 @@ class Media_RSS_Controller extends Controller {
|
||||
// @todo do we want to add an upload date to the items table?
|
||||
$view->pub_date = date("D, d M Y H:i:s T");
|
||||
|
||||
header("Content-type: application/rss+xml");
|
||||
rest::http_content_type(rest::RSS);
|
||||
print $view;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user