1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-29 17:19:56 +02:00

Issue #3291 - gSitemap upgrades to save table and table_id info for syncing on changes. (coming soon)

This commit is contained in:
Cameron
2020-12-09 15:12:56 -08:00
parent 2b77aa89d4
commit d0feb76cef
5 changed files with 54 additions and 14 deletions

View File

@@ -31,8 +31,10 @@ class download_gsitemap
foreach($data as $row)
{
$import[] = array(
'id' => $row['download_category_id'],
'table' => 'download_category',
'name' => $row['download_category_name'],
'url' => e107::url('download', 'category', $row, array('mode' => 'full' )),
'url' => e107::url('download', 'category', $row, array('mode' => 'full' )),
'type' => LAN_PLUGIN_DOWNLOAD_NAME
);
}
@@ -41,9 +43,11 @@ class download_gsitemap
foreach($data as $row)
{
$import[] = array(
'name' => $row['download_name'],
'url' => e107::url('download', 'item', $row, array('mode' => 'full' )),
'type' => LAN_PLUGIN_DOWNLOAD_NAME
'id' => $row['download_id'],
'table' => 'download',
'name' => $row['download_name'],
'url' => e107::url('download', 'item', $row, array('mode' => 'full' )),
'type' => LAN_PLUGIN_DOWNLOAD_NAME
);
}