Address PHPStan findings as of 2.0.1
This commit is contained in:
16
prefs.php
16
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();
|
||||
$script = $p->get_prefs_js();
|
||||
|
||||
if ($script) {
|
||||
echo "try {
|
||||
$script
|
||||
} catch (e) {
|
||||
console.warn('failed to initialize plugin JS: $n', e);
|
||||
}";
|
||||
}
|
||||
if ($script) {
|
||||
echo "try {
|
||||
$script
|
||||
} catch (e) {
|
||||
console.warn('failed to initialize plugin JS: $n', e);
|
||||
}";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user