Skip to content

Commit

Permalink
Remove RSS feeds autodiscovery
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne authored and trasher committed Apr 5, 2023
1 parent 5ed5cef commit e2819da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ The present file will list all changes made to the project; according to the

#### Deprecated
- `Glpi\Inventory\Conf::importFile()`
- `RSSFeed::showDiscoveredFeeds()`
- `Toolbox::checkValidReferer()`

#### Removed
Expand Down
12 changes: 4 additions & 8 deletions src/RSSFeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -790,14 +790,7 @@ public function showForm($ID, array $options = [])
echo Dropdown::getYesNo($this->fields['have_error']);
}
echo "</td>";
if ($this->fields['have_error']) {
echo "<td>" . __('RSS feeds found');
echo "</td><td>";
$this->showDiscoveredFeeds();
echo "</td>\n";
} else {
echo "<td colspan='2'>&nbsp;</td>";
}
echo "<td colspan='2'>&nbsp;</td>";
echo "</tr>";

$this->showFormButtons($options);
Expand Down Expand Up @@ -874,9 +867,12 @@ public function showFeedContent()
* Show discovered feeds
*
* @return void
*
* @deprecated
**/
public function showDiscoveredFeeds()
{
Toolbox::deprecated();
if (!Toolbox::isUrlSafe($this->fields['url'])) {
return;
}
Expand Down

0 comments on commit e2819da

Please sign in to comment.