diff --git a/backend.php b/backend.php
index 206d866b7..e310322f2 100644
--- a/backend.php
+++ b/backend.php
@@ -135,6 +135,9 @@
} else {
if (method_exists($handler, "catchall")) {
$handler->catchall($method);
+ } else {
+ header("Content-Type: text/json");
+ print Errors::to_json(Errors::E_UNKNOWN_METHOD, ["info" => get_class($handler) . "->$method"]);
}
}
$handler->after();
@@ -154,6 +157,6 @@
}
header("Content-Type: text/json");
- print Errors::to_json(Errors::E_UNKNOWN_METHOD);
+ print Errors::to_json(Errors::E_UNKNOWN_METHOD, ["info" => get_class($handler) . "->$method"]);
?>
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php
index 14ca9b49c..7ab9966ba 100644
--- a/classes/pref/prefs.php
+++ b/classes/pref/prefs.php
@@ -842,6 +842,8 @@ class Pref_Prefs extends Handler_Protected {
$is_checked = "checked='1'";
}
+ $can_update = is_dir(dirname(dirname(__DIR__)) . "/plugins.local/$name/.git");
+
?>