mirror of
https://github.com/e107inc/e107.git
synced 2025-09-01 10:23:53 +02:00
Issue #3291 gSitemap table changes. Generic handling of link updates via e_gsitemap.php
This commit is contained in:
@@ -56,11 +56,24 @@ class news_gsitemap
|
||||
'id' => $row['news_id'],
|
||||
'table' => 'news',
|
||||
'name' => $row['news_title'],
|
||||
'url' => e107::getUrl()->create('news/view/item', $row, array('full' => 1)),
|
||||
'url' => $this->url($row),
|
||||
'type' => ADLAN_0
|
||||
);
|
||||
}
|
||||
|
||||
return $import;
|
||||
}
|
||||
|
||||
/**
|
||||
* Used above and by gsitemap/e_event.php to update the URL when changed in news, pages etc.
|
||||
* @param $row
|
||||
* @return string
|
||||
*/
|
||||
function url($row)
|
||||
{
|
||||
return e107::getUrl()->create('news/view/item', $row, array('full' => 1));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user