From 226b238e5b50a75a5e60d0fdb72a4e2f3aaabb35 Mon Sep 17 00:00:00 2001 From: Jimako Date: Wed, 8 Aug 2018 12:21:43 +0200 Subject: [PATCH 1/2] e_gsitemap for download plugin #fix 2606 --- e107_plugins/download/e_gsitemap.php | 56 ++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 e107_plugins/download/e_gsitemap.php diff --git a/e107_plugins/download/e_gsitemap.php b/e107_plugins/download/e_gsitemap.php new file mode 100644 index 000000000..57fcda0a9 --- /dev/null +++ b/e107_plugins/download/e_gsitemap.php @@ -0,0 +1,56 @@ +retrieve("download_category", "*", " ORDER BY download_category_order ASC", true); + + foreach($data as $row) + { + $import[] = array( + 'name' => $row['download_category_name'], + 'url' => e107::url('download', 'category', $row, array('mode' => 'full' )), + 'type' => LAN_PLUGIN_DOWNLOAD_NAME + ); + } + + $data = $sql->retrieve("download", "*", "download_class IN (" . $userclass_list . ") AND download_active != '0' ORDER BY download_datestamp ASC", true); + foreach($data as $row) + { + $import[] = array( + 'name' => $row['download_name'], + 'url' => e107::url('download', 'item', $row, array('mode' => 'full' )), + 'type' => LAN_PLUGIN_DOWNLOAD_NAME + ); + } + + return $import; + } +} \ No newline at end of file From 762301c3519cd0c44f75d68bd5e90d2f68ab23b5 Mon Sep 17 00:00:00 2001 From: Jimako Date: Wed, 8 Aug 2018 12:25:46 +0200 Subject: [PATCH 2/2] fix - forgotten lans --- e107_plugins/download/e_gsitemap.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/e107_plugins/download/e_gsitemap.php b/e107_plugins/download/e_gsitemap.php index 57fcda0a9..dff1dfbec 100644 --- a/e107_plugins/download/e_gsitemap.php +++ b/e107_plugins/download/e_gsitemap.php @@ -13,11 +13,7 @@ if (!defined('e107_INIT')) { exit; } - -// e107::plugLan('news', true); -// solution from news.php: -e107::includeLan(e_LANGUAGEDIR . e_LANGUAGE . '/lan_news.php'); // Temporary - + // v2.x Standard // there is missing lan for Download category in global lan file