aboutsummaryrefslogtreecommitdiff
path: root/prefs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2024-11-13 18:38:32 +0000
committerAndrew Dolgov <fox@fakecake.org>2024-11-13 18:38:32 +0000
commit394d606fe977a331f733c62e5509469c2eb3ef31 (patch)
tree27832a131eafec209a8de1361c35c69baa45231f /prefs.php
parent6273e26ea463e2762f2d736455f4912de7171cfa (diff)
parent859ce4d7f69a46716a10eacc485ffaf9867a76d4 (diff)
Merge branch 'feature/phpstan-2.0.x' into 'master'
PHPStan 2.0.x See merge request tt-rss/tt-rss!74
Diffstat (limited to 'prefs.php')
-rw-r--r--prefs.php18
1 files changed, 8 insertions, 10 deletions
diff --git a/prefs.php b/prefs.php
index f1c7a0fa7..6884edb7c 100644
--- a/prefs.php
+++ b/prefs.php
@@ -64,16 +64,14 @@
<script type="text/javascript">
<?php
foreach (PluginHost::getInstance()->get_plugins() as $n => $p) {
- if (method_exists($p, "get_prefs_js")) {
- $script = $p->get_prefs_js();
-
- if ($script) {
- echo "try {
- $script
- } catch (e) {
- console.warn('failed to initialize plugin JS: $n', e);
- }";
- }
+ $script = $p->get_prefs_js();
+
+ if ($script) {
+ echo "try {
+ $script
+ } catch (e) {
+ console.warn('failed to initialize plugin JS: $n', e);
+ }";
}
}
?>