diff --git a/e107_handlers/plugin_class.php b/e107_handlers/plugin_class.php index c7a1ae0f3..1f070e3b1 100644 --- a/e107_handlers/plugin_class.php +++ b/e107_handlers/plugin_class.php @@ -84,11 +84,11 @@ class e_plugin "_blank","admin_menu","banner","blogcalendar_menu", "chatbox_menu", "clock_menu","comment_menu", "contact", "download", "featurebox", "forum","gallery", - "gsitemap","import", "linkwords", "list_new", "log", "login_menu", + "gsitemap", "hero", "import", "linkwords", "list_new", "log", "login_menu", "metaweblog", "newforumposts_main", "news", "newsfeed", "newsletter","online", "page", "pm","poll", "rss_menu","search_menu","siteinfo", "social", "tagcloud", "tinymce4", - "tree_menu","user" + "user" ); @@ -1366,7 +1366,7 @@ class e107plugin "metaweblog", "newforumposts_main", "news", "newsfeed", "newsletter","online", "page", "pm","poll", "rss_menu","search_menu","siteinfo", "social", "tagcloud", "tinymce4", - "trackback","tree_menu","user" + "user" ); diff --git a/e107_plugins/gsitemap/admin_config.php b/e107_plugins/gsitemap/admin_config.php index 2e5e9e577..51da9b2c7 100644 --- a/e107_plugins/gsitemap/admin_config.php +++ b/e107_plugins/gsitemap/admin_config.php @@ -284,7 +284,7 @@ class gsitemap_ui extends e_admin_ui - ".GSLAN_2." + ".LAN_TYPE." ".LAN_NAME." ".LAN_URL." @@ -293,6 +293,7 @@ class gsitemap_ui extends e_admin_ui "; + foreach($importArray as $k=>$ia) { $id = 'gs-'.$k; @@ -300,8 +301,8 @@ class gsitemap_ui extends e_admin_ui - - ".$ia['name']." + + ".str_replace(SITEURL,"",$ia['url'])." "; @@ -541,7 +542,7 @@ $text = " if ($sql->insert("gsitemap", $insert)) { e107::getMessage()->addSuccess(LAN_CREATED); - $log->add('GSMAP_01', $gsitemap->message); + $log->add('GSMAP_01', LAN_CREATED); } else { @@ -552,7 +553,7 @@ $text = " } // $this->message = count($_POST['importid'])." link(s) imported."; - $log->add('GSMAP_01', $gsitemap->message); + // $log->add('GSMAP_01', $gsitemap->message); } } diff --git a/e107_plugins/gsitemap/e_event.php b/e107_plugins/gsitemap/e_event.php index d55340a05..1b9b6e97c 100644 --- a/e107_plugins/gsitemap/e_event.php +++ b/e107_plugins/gsitemap/e_event.php @@ -58,7 +58,7 @@ class gsitemap_event // plugin-folder + '_event' return null; } - if(!$url = $gsmap->url($data['newData'])) + if(!$url = $gsmap->url($data['table'], $data['newData'])) { return null; } diff --git a/e107_plugins/news/e_gsitemap.php b/e107_plugins/news/e_gsitemap.php index 167aa059d..ddd33e4a5 100644 --- a/e107_plugins/news/e_gsitemap.php +++ b/e107_plugins/news/e_gsitemap.php @@ -35,7 +35,7 @@ class news_gsitemap 'id' => $row['category_id'], 'table' => 'news_category', 'name' => $row['category_name'], - 'url' => e107::getUrl()->create('news/list/category', $row, array('full' => 1)) , + 'url' => $this->url('news_category', $row), // e107::getUrl()->create('news/list/category', $row, array('full' => 1)) , 'type' => LAN_NEWS_23 ); } @@ -56,7 +56,7 @@ class news_gsitemap 'id' => $row['news_id'], 'table' => 'news', 'name' => $row['news_title'], - 'url' => $this->url($row), + 'url' => $this->url('news', $row), 'type' => ADLAN_0 ); } @@ -69,8 +69,13 @@ class news_gsitemap * @param $row * @return string */ - function url($row) + function url($table, $row) { + if($table === 'news_category') + { + return e107::getUrl()->create('news/list/category', $row, array('full' => 1)); + } + return e107::getUrl()->create('news/view/item', $row, array('full' => 1)); }