mirror of
https://github.com/e107inc/e107.git
synced 2025-08-25 23:36:29 +02:00
Closes #4702 - Added news_modified field.
This commit is contained in:
@@ -107,7 +107,7 @@ class news_gsitemap
|
||||
{
|
||||
$ret[] = [
|
||||
'url' => $this->url('news', $row),
|
||||
'lastmod' => (int) $row['news_datestamp'],
|
||||
'lastmod' => !empty($row['news_modified']) ? $row['news_modified'] : (int) $row['news_datestamp'],
|
||||
'freq' => 'hourly',
|
||||
'priority' => 0.5
|
||||
];
|
||||
|
@@ -718,7 +718,8 @@ class news_front
|
||||
$c++;
|
||||
}
|
||||
|
||||
$modifiedTime = strtotime('30 minutes ago');
|
||||
$modifiedTime = !empty($news['news_modified']) ? (int) $news['news_modified'] : (int) $news['news_datestamp'];
|
||||
|
||||
e107::meta('og:updated_time', $modifiedTime);
|
||||
|
||||
e107::meta('article:section', $news['category_name']);
|
||||
|
Reference in New Issue
Block a user