1
0
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:
Cameron
2020-12-23 15:03:31 -08:00
parent c43da4d7aa
commit 450e392741
5 changed files with 132 additions and 226 deletions

View File

@@ -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));
}
}