mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 21:45:55 +00:00
only allow clearing data of active plugins
This commit is contained in:
@@ -677,9 +677,11 @@ class Pref_Prefs extends Handler_Protected {
|
||||
print "<td>" . htmlspecialchars($about[2]) . "</td>";
|
||||
|
||||
if (count($tmppluginhost->get_all($plugin)) > 0) {
|
||||
if (in_array($name, $system_enabled)) {
|
||||
print "<td><a href='#' onclick=\"clearPluginData('$name')\"
|
||||
class='visibleLink'>".__("Clear data")."</a></td>";
|
||||
}
|
||||
}
|
||||
|
||||
print "</tr>";
|
||||
|
||||
@@ -727,8 +729,10 @@ class Pref_Prefs extends Handler_Protected {
|
||||
print "<td>" . htmlspecialchars($about[2]) . "</td>";
|
||||
|
||||
if (count($tmppluginhost->get_all($plugin)) > 0) {
|
||||
if (in_array($name, $system_enabled) || in_array($name, $user_enabled)) {
|
||||
print "<td><a href='#' onclick=\"clearPluginData('$name')\" class='visibleLink'>".__("Clear data")."</a></td>";
|
||||
}
|
||||
}
|
||||
|
||||
print "</tr>";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user